Skip to content

Instantly share code, notes, and snippets.

@jSayal
Created April 2, 2024 23:07
Show Gist options
  • Select an option

  • Save jSayal/9e462f41fcc003036403df94fa8f9cd2 to your computer and use it in GitHub Desktop.

Select an option

Save jSayal/9e462f41fcc003036403df94fa8f9cd2 to your computer and use it in GitHub Desktop.
Mount remote directory on local machine using sshfs
# ---------------------------------------------------
# SSHFS is file system client based on SSH
# ---------------------------------------------------
# Install SSHFS on Ubuntu
# ---------------------------------------------------
sudo apt install sshfs
# Install SSHFS on Mac OSX
# ---------------------------------------------------
brew install sshfs
# Mount remote directory on local machine using sshfs
# ---------------------------------------------------
# Create a mount point
mkdir web-content
# Mount the remote directory
sshfs user@remote-host:/directory web-content
# To unmount
fusermount -u web-content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment