Created
April 2, 2024 23:07
-
-
Save jSayal/9e462f41fcc003036403df94fa8f9cd2 to your computer and use it in GitHub Desktop.
Mount remote directory on local machine using sshfs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # --------------------------------------------------- | |
| # 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