How to mount sftp resource using private key file in kubuntu?

1

I know how to mount sftp connection in kubuntu (using Dolphin), but this way it's impossible to use private key file. Is there any way to mount a sftp resource using key file in kubuntu?

burtek

Posted 2012-06-21T13:53:24.693

Reputation: 533

Answers

1

Load the key into ssh-agent. Kubuntu starts one by default, so all you should have to do is:

ssh-add ~/.ssh/id_rsa

user1686

Posted 2012-06-21T13:53:24.693

Reputation: 283 655

1

The SFTP kioslave supports private key authentication without SSH agent if you pass the username with the hostname, e.g.

sftp://test@example.com 

in dolphin/konqueror will try authenticating with a private key and ask for its password (if the key is password protected).

P.S.  Posting here because it's pretty high in the google search results.

Искрен Хаджинедев

Posted 2012-06-21T13:53:24.693

Reputation: 111