Skip to content

Instantly share code, notes, and snippets.

@bluerid
Last active May 2, 2019 02:43
Show Gist options
  • Save bluerid/e3e087e2694a483be83369d7e4510ed8 to your computer and use it in GitHub Desktop.
Save bluerid/e3e087e2694a483be83369d7e4510ed8 to your computer and use it in GitHub Desktop.
Install and Setup SSHFS with AWS EC2
#Install
sudo apt-get install sshfs
#Setup SSHFS with local folder
sudo sshfs ubuntu@34.236.201.31:/path/to/remote/ec2_folder /user_home_folder/local_ec2s/ec2_sh1 -o IdentityFile=~/Path/to/ssh-key.pem -o allow_other
@bluerid
Copy link
Author

bluerid commented May 2, 2019

Example:
sudo sshfs ubuntu@ec2-××-××-××-×××.us-east-2.compute.amazonaws.com:/var/www/html/remote_folder/ /home/user_dir/remote_ec2s/local-folder -o IdentityFile=/home/user_dir/certs/×××-×××-i.pem -o allow_other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment