Skip to content

Instantly share code, notes, and snippets.

@malinky
Last active November 10, 2020 08:28
Show Gist options
  • Save malinky/946116a9869ca99418fe22a463a02d06 to your computer and use it in GitHub Desktop.
Save malinky/946116a9869ca99418fe22a463a02d06 to your computer and use it in GitHub Desktop.
SCP

SCP

Example Credentials

Server Username = craig Server IP = 100.200.300.400

Copy a file from local to remote

scp /local/file/path/filename.txt [email protected]:/remote/server/file/path

Copy a directory from local to remote

scp -r /local/folder/path [email protected]:/remote/server/folder/path

Copy a file from remote to local

scp [email protected]:/remote/server/file/path/filename.txt /local/file/path

Copy a file from remote to local current directory

scp [email protected]:/remote/server/file/path/filename.txt .

Copy a directory from remote to local

scp -r [email protected]:/remote/server/folder/path /local/folder/path

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