From 474571ac0c2f1ec02ff5f0fe115098cadf17c1c2 Mon Sep 17 00:00:00 2001 From: konomo Date: Mon, 26 Sep 2022 17:53:43 +0000 Subject: [PATCH] add section "Mount tilde folders on your machine using sshfs" --- wiki/pages/advanced-ssh.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/wiki/pages/advanced-ssh.md b/wiki/pages/advanced-ssh.md index dd8832c..97094d5 100644 --- a/wiki/pages/advanced-ssh.md +++ b/wiki/pages/advanced-ssh.md @@ -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!