How to mount SSHFS from Ubuntu

A more secure alternative to NFS or SAMBA would be to use SSHFS.

Besides encrypting the data stream, it has many benefits, among which:

  1. Firewall-friendly, since it uses standard SSH ports
  2. Supports PKI

To mount an SSH filesystem from Ubuntu, do the following:

  1. sudo apt install sshfs
  2. sudo mkdir /MountPoint
  3. sudo sshfs username@server:/RemoteFileSystem /MountPoint

Note: You don’t need to use sudo to mount via sshfs, just make sure you have permissions on the local mount point.

Sources:

  1. https://www.digitalocean.com/community/tutorials/how-to-use-sshfs-to-mount-remote-file-systems-over-ssh

About SoCRaT

Research Support and Infrastructure Engineer, OSS & Linux Geek
This entry was posted in Linux and tagged , , , , , . Bookmark the permalink.

One Response to How to mount SSHFS from Ubuntu

  1. ΞXΤЯ3МΞ says:

    Do you know if this works for mounting a remote AWS disk (s3) ?

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s