Page 1 of 1
SFTP after SSH Key Authorization
Posted: Thu Dec 31, 2015 10:46 am
by maronidis
Hello,
I have established a key-authentication for ssh access to my RPi2. After this I cannot loggin with SFTP
Any advice of where I should change what? Can I use the same key for SSH and SFTP?
Thanks
Re: SFTP after SSH Key Authorization
Posted: Thu Dec 31, 2015 3:05 pm
by DougieLawson
The private key belongs to the user in his ~/.ssh/id_rsa file, the public key goes in ~/.ssh/authorized_keys on the target system. Once you've set up a public/private key pair it's good for ssh, sftp and scp. The client programs need a copy of the private key.
If you're running PuTTY you can load the key with pagent.exe and it's then available to all PuTTY programs (putty.exe, pscp.exe, psftp.exe, plink.exe, etc.). If you're using a client like filezilla it will have it's own key management stuff.
Re: SFTP after SSH Key Authorization
Posted: Thu Dec 31, 2015 3:25 pm
by DirkS
DougieLawson wrote:If you're using a client like filezilla it will have it's own key management stuff.
Filezilla actually recognises Pageant.
Re: SFTP after SSH Key Authorization
Posted: Thu Dec 31, 2015 5:30 pm
by DougieLawson
DirkS wrote:DougieLawson wrote:If you're using a client like filezilla it will have it's own key management stuff.
Filezilla actually recognises Pageant.
Sneaky. It's clearly borrowed some of the code from PuTTY. I didn't know that.