Skip to content

Instantly share code, notes, and snippets.

@asamofal
Last active August 15, 2018 07:17
Show Gist options
  • Save asamofal/015c9c57f5daaa54f98526e97eda7208 to your computer and use it in GitHub Desktop.
Save asamofal/015c9c57f5daaa54f98526e97eda7208 to your computer and use it in GitHub Desktop.
sudo apt install sshfs
sudo mkrid /mtn/FOLDER_NAME
If you have a ssh key:
sudo sshfs -o allow_other,default_permissions,IdentityFile=~/.ssh/id_rsa USER_NAME@HOST_NAME:/ /mnt/FOLER_NAME
If you have only a password:
sudo sshfs -o allow_other,default_permissions USER_NAME@HOST_NAME:/ /mnt/FOLER_NAME
Permanently Mounting the Remote File System:
sudo nano /etc/fstab
sshfs#USER_NAME@HOST_NAME:/ /mnt/FOLER_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment