Knowledge Base - sshfs

Examples

Mount folder on local machine using existing public key but no ~/.ssh/config file

sshfs -o allow_other,default_permissions,IdentityFile=~/.ssh/id_rsa dave@xxxx.xxxx.xxxx.xxxx:/home/dave/ /home/dave/sshfs/acer_desktop/

Mount folder on local machine using existing public key and a ~/.ssh/config file*

$ cat ~/.ssh/config
Host digital-dave
	HostName xxxx.xxxx.xxxx.xxxx
	User dave
$ sshfs -o IdentityFile=~/.ssh/id_rsa digital-dave:/home/dave/ /home/dave/sshfs/acer_desktop/

* You will not be prompted for a password if you have followed the How to Setup Passwordless SSH Login tutorial.

Same as above but ~/.ssh/config file references public key file

$ cat ~/.ssh/config
Host digital-dave
	HostName xxxx.xxxx.xxxx.xxxx
	User dave
	IdentityFile ~/.ssh/id_rsa
$ sshfs digital-dave:/home/dave/ /home/dave/sshfs/acer_desktop/