Skip to content

Instantly share code, notes, and snippets.

@Andreluizfc
Last active April 4, 2022 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Andreluizfc/bead3257b87cbee0454c2cbb97e11294 to your computer and use it in GitHub Desktop.
Save Andreluizfc/bead3257b87cbee0454c2cbb97e11294 to your computer and use it in GitHub Desktop.

VMs Cheat Sheet

Upload files to VM

scp -i [local_ssh_key_file_path.pem] [local_file_path_to_upload] vm-name@1.1.1.1:/home/vm-user/vm_path_to_upload

Download files from VM

scp -i [local_ssh_key_file_path.pem] vm-name@1.1.1.1:home/vm-user/vm_path_to_download [local_file_path_to_download]

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