> 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 %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.glesys.com/products/compute/guides-for-server-management/mount-a-directory-over-ssh-using-sshfs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
