# Secure SHell File System (SSHFS)

**URL:** https://discussion.scottibyte.com/t/secure-shell-file-system-sshfs/716
**Category:** Uncategorized
**Created:** [February 17, 2026, 2:44am UTC](https://discussion.scottibyte.com/t/secure-shell-file-system-sshfs/716 "2026-02-17T02:44:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![scott](https://discussion.scottibyte.com/letter_avatar_proxy/v4/letter/s/3e96dc/32.png) [@scott](https://discussion.scottibyte.com/u/scott)
#### Post date: [February 17, 2026, 2:44am UTC](https://discussion.scottibyte.com/t/secure-shell-file-system-sshfs/716/1 "2026-02-17T02:44:01Z")

</div>

SSHFS is a network file system like CIFS, NFS, and AFS. SSHFS is encrypted and uses openssh-server just like Secure File Transfer Protocol (SFTP) except that it can mount remote file systems.

In past videos I have used SFTP as an easy mechanism to do drag and drop file copies from my Linux desktop file manager to LXD & Incus containers as well as servers that do not have a GUI interface.

As a quick review, to use SFTP, we install openssh-server (or just ssh) on your local server.

```auto
sudo apt install openssh-server

```

We can then log into a remote system that has openssh-server installed on it from our server.

```auto
ssh scott@172.16.2.35

```

This ssh command will prompt for a password. You can remove the password requirement by establishing an ssh key pair which we will describe later.

Assuming the key pair exists, it is possible to share your public key with a remote server thus removing the password requirement in the future. As an example:

```auto
ssh-copy-id scott@172.16.2.35

```

 ![image](https://discussion.scottibyte.com/uploads/default/original/2X/f/fef3ca4ca2329c40d62025a4a1f6ceb21c0408bd.jpeg)

Then, SFTP can be used from my Linux desktop file manager to access the file system on the remote server that has no GUI installed.

 ![image](https://discussion.scottibyte.com/uploads/default/original/2X/4/47e7cde92a5aee22cea529d183e2ecae3f30570d.png)

This would allow me to drag and drop files from my desktop to the server that has no GUI interface installed.

Secure SHell File System (SSHFS) is different from SFTP because it actually allows remote file systems to be mounted into a mount point.

In the tutorial, “Test2” is an incus container (Linux server) where I have installed:

```auto
sudo apt install openssh-server

```

Test1 is an incus container that I used to access files on the Test2 server.

I installed the following on Test1:

```auto
sudo apt install sshfs openssh-server fuse3 -y

```

 ![image](https://discussion.scottibyte.com/uploads/default/original/2X/c/c6ee963bae3f2997b78533c3673691a2815dbc95.jpeg)

On “Test1” I created a folder to use as a mount point for our sshfs file system on “Test2”.

```auto
mkdir -p ~/remote

```

I sshfs mounted the /home/scott folder on Test2 to this folder and the IP address of Test2 is 172.16.2.35.

```auto
sshfs scott@172.16.2.35:/home/scott ~/remote

```

This will ask us to confirm a host signature the first time we connect and we will be prompted for the password for the scott account on Test2 any time we want to mount the sshfs file system.

![image](https://discussion.scottibyte.com/uploads/default/original/2X/6/6eb1cf553b43cbbe3ec53c4b871042024b8860fa.png)

From that point you can move into the mount point and access the files on Test2.

```auto
cd remote
ls

```

 ![image](https://discussion.scottibyte.com/uploads/default/original/2X/4/4d32650b15bcb036afc31d3d97843864c0a58f73.png)

You can dismount the folder as long as you are not inside of the mount point. You can use either of the following commands to dismount the sshfs file system.

```auto
fusermount -u ~/remote
umount ~/remote

```

If you want to mount your sshfs volume without providing a password, this can be done by first generating a public and private ssh key pair.

```auto
ssh-keygen -t ed25519 

```

 ![image](https://discussion.scottibyte.com/uploads/default/original/2X/4/4d66c219258e7da18af090f9e77999a761c046b2.jpeg)

Copy your public key to the remote server.

```auto
ssh-copy-id scott@172.16.2.35

```

 ![image](https://discussion.scottibyte.com/uploads/default/original/2X/e/e5841ba5ac5bb0f6161d7a5546ca182f42300ac7.jpeg)

With the key shared to the Test2 server, the mount command becomes:

```auto
sshfs -o IdentityFile=~/.ssh/id_ed25519 scott@172.16.2.35:/home/scott ~/remote

```

 ![image](https://discussion.scottibyte.com/uploads/default/original/2X/e/e72bb72166eefe872b603de57dc8cf677c091fd2.png)

SSHFS file systems provide a powerful and secure way to access files on remote systems.
