View Single Post
Old 12-09-2011, 07:02 PM   #2164
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
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).
hawhill is offline   Reply With Quote