Last active
September 19, 2018 15:36
-
-
Save mrubash1/d7756da3bfafa0ee082da899236e6134 to your computer and use it in GitHub Desktop.
Mount your AWS elastic volume to your local machine
This file contains 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
# Install SSHFS: | |
sudo apt-get install sshfs | |
# Make a local directory to mount the volume to: | |
sudo mkdir /mnt/aws | |
# Mount the volume | |
# Note: Make sure you use abosulute paths for all of the directories. | |
sudo sshfs -o allow_other,IdentityFile=/home/yourname/.ssh/key.pem ubuntu@ec2-XX-XXX-XX-XX.us-west-2.compute.amazonaws.com:/home/ubuntu /mnt/aws | |
# Reference: https://www.digitalocean.com/community/tutorials/how-to-use-sshfs-to-mount-remote-file-systems-over-ssh | |
# Thanks: https://github.com/fniroui |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment