Skip to content

Instantly share code, notes, and snippets.

@28development
Created April 18, 2018 13:39
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 28development/87d8b848b806bb7c9ce55fd43188c501 to your computer and use it in GitHub Desktop.
Save 28development/87d8b848b806bb7c9ce55fd43188c501 to your computer and use it in GitHub Desktop.
SCP command to copy a folder from a windows machine to an ubuntu machine
Copy the project "app" inside C:\laragon\www\ to the ubuntu server with the written location,
for security reasons one has to add the public key (.pem)
_____________________________________________________________________________________________
// Current dir in console has the .pem file
scp -r -i yourPublicKey.pem \laragon\www\app ubuntu@16.191.16.242:/home/bitnami/htdocs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment