Skip to content

Instantly share code, notes, and snippets.

@naumvd95
Created July 15, 2017 17:13
Show Gist options
  • Save naumvd95/69aa129e46bc278eabe7a825cca0a196 to your computer and use it in GitHub Desktop.
Save naumvd95/69aa129e46bc278eabe7a825cca0a196 to your computer and use it in GitHub Desktop.
SSHFS-small tutor
#!/bin/bash
# this small file explain step-by step , how-to use ssh-fs
#create mount dir and set up environment
sudo mkdir /media/stark1
sudo chown vnaumov:vnaumov /media/stark1
apt-get install sshfs
# attach remote dir using sshfs
sshfs [email protected]:/home/vnaumov/stark1/ /media/stark1 -o reconnect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment