From 2af92352651f90892c1e210d424becdafc0e4d22 Mon Sep 17 00:00:00 2001 From: deepend-tildeclub <58404188+deepend-tildeclub@users.noreply.github.com> Date: Thu, 12 Mar 2020 21:48:27 -0600 Subject: [PATCH] update sshfs.md --- wiki/source/sshfs.md | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/wiki/source/sshfs.md b/wiki/source/sshfs.md index 2071708..b9b07a7 100644 --- a/wiki/source/sshfs.md +++ b/wiki/source/sshfs.md @@ -1,7 +1,38 @@ --- +author: jeffbonhag 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.