aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/cheat/scp
blob: 0a632ec0d53be20d394b17b04e64d80a84dab0eb (plain)
1
2
3
4
5
6
7
8
# To copy a file from your local machine to a remote server:
scp foo.txt user@example.com:remote/dir

# To copy a file from a remote server to your local machine:
scp user@example.com:remote/dir/foo.txt local/dir

# Option for select port
-P <port>