osx - How to use ssh keys for sshfs automount from mac to ubuntu -


i want able automount ubuntu volume on mac using sshfs. tried using ssh key-gen , copying id_rsa file, adding pub key authorized keys, using sorts of sshfs -o options, no avail.

the procedure setting ssh key authentication same whether using sshfs or else.

on client side generate key. in case making dsa key

ssh-keygen -t dsa 

you should have id_dsa file , id_dsa.pub file in .ssh directory. pub file public key, , contents placed inside authorized_keys file (or authorized_keys2 if using dsa key above) in .ssh directory of server want log in.

if on linux client, can push key server using ssh-copy-id command.

ssh-copy-id user@server: 

on client side id_dsa file needs owned , have 600 permissions, default when generate key. on server side authorized_keys file needs owned , not world writable, should case if don't weird when copying on doing root.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -