Advertisement
fduran

Linux SSH Filesystem

Apr 21st, 2011
531
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.42 KB | None | 0 0
  1. # Use SSH filesystem to mount locally a remote directory through SSH
  2. # www.fduran.com
  3.  
  4. # at local server:
  5. apt-get update; apt-get install sshfs
  6. mkdir /path/to/local/dir
  7.  
  8. # Mounting -persists on logout- (for other ssh port add: -p port):
  9. sshfs remoteserver.example.com:/path/to/remote/dir /path/to/local/dir
  10.  
  11. # for read-only add: -o ro
  12.  
  13. # Unmounting:
  14. fusermount -u /path/to/local/dir
  15.  
  16. # or
  17. umount /path/to/local/dir
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement