Skip to content

Instantly share code, notes, and snippets.

@kmamit
Created September 6, 2012 04:22
Show Gist options
  • Save kmamit/3651202 to your computer and use it in GitHub Desktop.
Save kmamit/3651202 to your computer and use it in GitHub Desktop.
# copy a single file to your server
scp mylocalfile.html root@myserverip:/var/www/html/
# copy a whole directory to your server
scp -r mylocaldirectory root@myserverip:/var/www/html/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment