上傳文件
$ scp [option] <localfile> <username>@<host>:<remote-file-location>
示例:
$ scp /home/user/test.txt [email protected]:/home/user/
$ scp -r /home/user/test/ [email protected]:/home/user/
下載文件
$ scp [option] <username>@<host>:<remote-files> <local-file-location>
示例:
$ scp -r [email protected]:/home/user/test/ /home/user/
-r表示文件夾操作