Skip to content

Instantly share code, notes, and snippets.

@calebreister
Created December 18, 2013 16:48
Show Gist options
  • Save calebreister/8025631 to your computer and use it in GitHub Desktop.
Save calebreister/8025631 to your computer and use it in GitHub Desktop.
This is how you use the scp (secure copy) command to move a file to your SSH server, for instance a --bare Git repo.
scp -P22 -r local_file username@remote_url:/remote/directory/
#P22 is port 22, which SSH uses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment