[SOLVED] sftp can't connect with key in Caja

Archived topics about LMDE 1 and LMDE 2
Locked
dominic-y
Level 1
Level 1
Posts: 6
Joined: Tue Apr 16, 2013 10:40 pm

[SOLVED] sftp can't connect with key in Caja

Post by dominic-y »

Hi I'm from Taiwan, Sorry my English was not good.

I have 2 servers d1 and d2 that I can login with key in command line (use ssh) both of them.
What differenet is d1 server accept key and password authorize and d2 accept key authorize only.

brief:

d1 ssh ==> key and password login accept
d2 ssh ==> key only login accept

Here is my problem:
I wanna login d1 in Caja by typing sftp://root@d1 it jump a window ask me password. if I enter correct password then I can login.

I wanna login d2 in Caja by typing sftp://root@d2 it show me "access was denied."

it seems Caja didn't take my key sent to server or Caja didn't how to get my key

Please help me how to use ssh key login in Caja.

Thank you
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
josilito

Re: sftp can't connect with key in Caja

Post by josilito »

i think you forget something.
or maybe it's bug
so that's why the program denied.
dominic-y
Level 1
Level 1
Posts: 6
Joined: Tue Apr 16, 2013 10:40 pm

Re: sftp can't connect with key in Caja

Post by dominic-y »

I found the solution by myself

vim ~/.ssh/config

Host server1
HostName 192.168.0.5
User root
Port 238
IdentityFile ~/.ssh/keyfile

then you can login in like this command
ssh server1

also you can use in caja like this:
sftp://server1/var/www

Thanks for josilito's hint.

reference: man ssh_config
Locked

Return to “LMDE Archive”