forked from team/site
1
0
Fork 0

add section "Mount tilde folders on your machine using sshfs"

This commit is contained in:
konomo 2022-09-26 17:53:43 +00:00
parent 979a33fbd0
commit 474571ac0c
1 changed files with 16 additions and 0 deletions

View File

@ -40,6 +40,22 @@ As long as you can ssh, you can copy files to and from the remote side. It also
`scp tilde.team:~/CrapINeedThisFileLocally.js ./AwesomeLocalJSFile.js`
## Mount tilde folders on your machine using sshfs
But what if manually downloading files, editing them, and uploading them again is too tedious? Wouldn't it be great to just be able to edit a file on tilde.team from your home terminal?
With sshfs, you can mount a remote folder on your computer, and access it as if it were a local folder.
Refer to your distribution's package manager on how to install sshfs.
Once sshfs is installed, you can mount any folder on tilde.team to any folder on your machine. This example mounts your homefolder to `/tmp/tilde`:
`mkdir -p /tmp/tilde && sshfs USERNAME@tilde.team:/home/USERNAME /tmp/tilde`
You can unmount the tilde from your machine by running `umount` on the directory you mounted the directory to:
`umount /tmp/tilde`
## Remote execution
What if you don't want to really log into team.tilde, but you just need to run a command. You can do that too, with ssh!