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

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

Postby dominic-y on Tue Apr 16, 2013 11:29 pm

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 dominic-y on Tue Apr 23, 2013 2:24 am, edited 2 times in total.
dominic-y
Level 1
Level 1
 
Posts: 6
Joined: Tue Apr 16, 2013 10:40 pm

Linux Mint is funded by ads and donations.
 

Re: sftp can't connect with key in Caja

Postby josilito on Sat Apr 20, 2013 9:18 pm

i think you forget something.
or maybe it's bug
so that's why the program denied.
josilito
Level 1
Level 1
 
Posts: 1
Joined: Sat Apr 20, 2013 9:07 pm

Re: sftp can't connect with key in Caja

Postby dominic-y on Tue Apr 23, 2013 2:21 am

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
dominic-y
Level 1
Level 1
 
Posts: 6
Joined: Tue Apr 16, 2013 10:40 pm


Return to MATE

Who is online

Users browsing this forum: No registered users and 0 guests