Mount a remote share using SSHFS
2011-01-05 by xpheas
Install SSHFS on you local machine:
Add your user to the fuse group
Create the mount point
Now we can mount the remote share
To unmount type:
To add the share permanetly add it to your fstab
For passwordless authentication put your public rsa key on the remote machine.
BASH-Code:
| apt-get install sshfs |
Add your user to the fuse group
BASH-Code:
| sudo gpasswd -a $USER fuse |
Create the mount point
BASH-Code:
| mkdir ~/remote_share |
Now we can mount the remote share
BASH-Code:
| sshfs -o idmap=user $USER@host:/path/to/share ~/remote_share |
To unmount type:
BASH-Code:
| fusermount -u ~/remote_share |
To add the share permanetly add it to your fstab
BASH-Code:
| nano /etc/fstab |
BASH-Code:
| sshfs#$USER@host:/path/to/share /home/$USER/remote_share fuse users,exec,allow_other,_netdev,reconnect,transform_symlinks,uid=1000,gid=1000,defaults,idmap=user 0 0 |
For passwordless authentication put your public rsa key on the remote machine.
« back