aboutsummaryrefslogtreecommitdiff
path: root/cheat/.cheat/scp
diff options
context:
space:
mode:
Diffstat (limited to 'cheat/.cheat/scp')
-rw-r--r--cheat/.cheat/scp8
1 files changed, 8 insertions, 0 deletions
diff --git a/cheat/.cheat/scp b/cheat/.cheat/scp
new file mode 100644
index 0000000..0a632ec
--- /dev/null
+++ b/cheat/.cheat/scp
@@ -0,0 +1,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>