How to mount a remote (over SSH) directory to be available like a local directory (incl. in shell, not just in Gnome)? [duplicate]

I've got my files (mostly text/code, nothing of heavy like videos etc.) in a directory on a remote server which I can only access by means of SSH. Can I mount it on my laptop to use it seamlessly from all the applications (incl command-line ones)?


Solution 1:

Yes indeed, you can! It's called sshfs. Here's a little tutorial.

The basic idea is:

  1. Install sshfs

    sudo apt install sshfs
    
  2. Mount the remote directory

    sshfs user@host:/path/to/remote /path/to/local/mount/point
    

You now have the remote directory /path/to/remote available at /path/to/local/mount/point.