Sshfs passwordless

sshfs

Does any one know ssh -i equivalent for sshfs ? I want to use sshfs without promting for a password

Best Answer

The best solution would be ssh-agent as Zoredache suggests.

Another is to put your key in ~/.ssh/id_rsa, that way it will be detected automatically. (Use id_dsa for DSA keys.)

Yet another is ~/.ssh/config. Put something like this in it (see manual page of ssh_config for further details)

Host somebox.somedomain.tld
  User joe
  IdentityFile ~/key_for_somebox

Host *
  IdentityFile ~/key_for_everything_else
Related Topic