How to use ssh keys for sshfs automount with mac on ubuntu

I want to mount an ubuntu volume on my mac using sshfs. I tried using ssh key-gen and copying the id_rsa file, adding the pub key to my authorized keys using all sshfs -o options, to no avail.

+3
source share
1 answer

The procedure for setting ssh key authentication is the same if you use it for sshfs or something else.

On the client side, you create a key. In this case, we make the DSA key

ssh-keygen -t dsa

id_dsa id_dsa.pub .ssh. , authorized_keys ( authorized_keys2, DSA, ) .ssh , .

Linux, , ssh-copy-id.

ssh-copy-id user@server:

id_dsa 600 , . authorized_keys , , , root.

0

Source: https://habr.com/ru/post/1793202/


All Articles