update sshfs.md

This commit is contained in:
deepend-tildeclub 2020-03-12 21:48:27 -06:00 committed by GitHub
parent d77411f1f5
commit 2af9235265
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 33 additions and 2 deletions

View File

@ -1,7 +1,38 @@
--- ---
author: jeffbonhag
title: SSHFS title: SSHFS
--- ---
With `sshfs` you can mount your tilde directory as a drive. On OS X:
See http://tilde.club/~jeffbonhag/sshfs.txt for a tutorial. Download the lastest version of OSXFUSE: [http://osxfuse.github.io/](http://osxfuse.github.io/)
brew install sshfs
Now you can mount a ssh server by issuing the following commands:
mkdir tilde.club
sshfs jeffbonhag@tilde.club:/home/jeffbonhag tilde.club
If you're on Linux and want to make an entry in your fstab:
mkdir -p /mnt/tilde.club
Put an entry in your `/etc/fstab` like this:
jeffbonhag@tilde.club:/home/jeffbonhag /mnt/tilde.club fuse.sshfs _netdev,user,idmap=user,transform_symlinks,allow_other,default_permissions,uid=jeff,gid=jeff,umask=0 0 0
then you can do
mount /mnt/tilde.club
If you want to use an identity file to mount instead of a password, this may
work (untested):
jeffbonhag@tilde.club:/home/jeffbonhag /mnt/tilde.club fuse.sshfs _netdev,user,idmap=user,transform_symlinks,identityfile=/home/USER_C/.ssh/id_rsa,allow_other,default_permissions,uid=USER_C_ID,gid=GROUP_C_ID,umask=0 0 0
Although -- do you really need to do this? It just occurred to me that the
first command is just as easy, and probably makes more sense.