maronidis
Posts: 7
Joined: Thu Dec 31, 2015 10:42 am

SFTP after SSH Key Authorization

Thu Dec 31, 2015 10:46 am

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

User avatar
DougieLawson
Posts: 39302
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: SFTP after SSH Key Authorization

Thu Dec 31, 2015 3:05 pm

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.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

DirkS
Posts: 10371
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: SFTP after SSH Key Authorization

Thu Dec 31, 2015 3:25 pm

DougieLawson wrote:If you're using a client like filezilla it will have it's own key management stuff.
Filezilla actually recognises Pageant.

User avatar
DougieLawson
Posts: 39302
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: SFTP after SSH Key Authorization

Thu Dec 31, 2015 5:30 pm

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.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Troubleshooting”