Skip to content

Instantly share code, notes, and snippets.

@mrubash1
Last active September 19, 2018 15:36
Show Gist options
  • Save mrubash1/d7756da3bfafa0ee082da899236e6134 to your computer and use it in GitHub Desktop.
Save mrubash1/d7756da3bfafa0ee082da899236e6134 to your computer and use it in GitHub Desktop.
Mount your AWS elastic volume to your local machine
# 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