How to: Mount a SFTP Folder (SSH + FTP) on Ubuntu Linux using SSHFS & Fuse

image_pdfimage_print

Purpose: to mount a remote directory on my local Ubuntu Linux Desktop system using SFTP (which is SSH in an FTP-like fashion).

The goal is to easily gain access to a remote system’s files through another folder on my desktop. Debina/Ubuntu allows you to easily mount SSH folders via the GUI, however, these mounts won’t show up in the terminal (and in some programs).

sshfs to accomplish this.

 Ubuntu’s SSHFS documentation here.

Sshfs and mount

 

  1. add your username to the fuse group.
    1. On Ubuntu, you would open a terminal window and perform the following:

 

  • SFTP server. I created a folder on my desktop called sftp.
  • Once the folder has been created, simply run sshfs using the appropriate login information (host username and IP), the host and local directories, and the SFTP connection is mounted on a folder on my desktop.

Ref: creating a bash alias

 

possible errors and workarounds

 

Create a bash alias to save time and typing


  •  

unmount

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.