srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2022-12-07 21:47:37 +0200
committersrdusr <[email protected]>2022-12-07 21:47:37 +0200
commit72e120f554e08a653b6228a04854b4fa8f78ddec (patch)
tree9954ef060c7e6f138e281a58d194c0a6288354c8 /tools
parent11ca43c5c1524a7f74a6e6f9678a71678e13707c (diff)
downloadnotes-72e120f554e08a653b6228a04854b4fa8f78ddec.tar.gz
notes-72e120f554e08a653b6228a04854b4fa8f78ddec.zip
Add syntax for SCP
Diffstat (limited to 'tools')
-rw-r--r--tools/ssh.md13
1 files changed, 11 insertions, 2 deletions
diff --git a/tools/ssh.md b/tools/ssh.md
index b94a0a3..1d6dad2 100644
--- a/tools/ssh.md
+++ b/tools/ssh.md
@@ -34,8 +34,17 @@
`logcat -s 'syslog:*'`
-
-#### Copying files
+#### Copying files
+##### (SCP Secure Copy Protocol)
+- Syntax:
+```bash
+scp [OPTIONS] [[user@]src_host:]file1 [[user@]dest_host:]file2
+```
+```bash
+scp file <remote_username>@<IPorHost>:<PathToFile> <LocalFileLocation>
+```
+
+How to SSH File Transfer from Remote to Local
1. Copy single file from local to remote using scp.
$ `scp myfile.txt remoteuser@remoteserver:/remote/folder/`