> For the complete documentation index, see [llms.txt](https://docs.glesys.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.glesys.com/products/compute/guides-for-server-management/mount-a-directory-over-ssh-using-sshfs.md).

# Mount a directory over SSH using SSHFS

***

A convenient way to access your server’s files is to use **SSHFS**. With this tool, you can mount a directory from a server into the local filesystem over SSH. It can be handy, for example, if you’re doing web development and need to edit files.

Start by downloading and installing SSHFS:

{% code title="Command" %}

```
sudo apt-get install sshfs
```

{% endcode %}

Create a directory where you want to mount the remote server's file:

{% code title="Command" %}

```
mkdir ~/sshfsmountdirectory
```

{% endcode %}

Now, let's mount the remote directory from the server:

{% code title="Command" %}

```
sshfs exampleuser@remoteip:/home/user/svn ~/sshfsmountdirectory
```

{% endcode %}

All commands may need to be adjusted to include your username, your directory names, and so on.

Now you’re free to edit the files and see how they change directly on the server.

## Unmounting the remote directory

To unmount the remote directory, run:

{% code title="Command" %}

```
fusermount3 -u ~/sshfsmountdirectory
```

{% endcode %}
