View Single Post
Old 12-10-2011, 10:09 AM   #2166
Astor
Junior Member
Astor began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2011
Device: kindle 3
Quote:
Originally Posted by hawhill View Post
Ah, OK. I think you should create a ~/.ssh/config file with a config section, specifying the key. However, I don't know if mc can properly ask for a key passphrase, so it might sense to have an ssh-agent running, too.

The section in the file would look like:

Host kindle
Hostname 192.168.1.4
IdentityFile ~/key.key
User root

and you can connect using "kindle" as the host to connect to.

See ssh_config(5), ssh-agent(1).
BIG THANKS! It works!
Astor is offline   Reply With Quote