https://www.cnblogs.com/likui360/p/6011769.html
the command of upload and download is the same
scp
server to computer
[root@XX ~]# scp -r root@43.224.34.73:/home/lk /root root@43.224.34.73‘s password: k2.sql 100% 0 0.0KB/s 00:00 k.zip 100% 176 0.2KB/s 00:00 .bash_history 100% 32 0.0KB/s 00:00 .bash_logout 100% 18 0.0KB/s 00:00 .bashrc 100% 231 0.2KB/s 00:00 k3.sql 100% 0 0.0KB/s 00:00 .bash_profile 100% 193 0.2KB/s 00:00 [root@XX ~]# ls
computer to server
[root@XX lk]# scp -r /root/lk root@43.224.34.73:/home/lk/cpfile root@43.224.34.73‘s password: k2.sql 100% 0 0.0KB/s 00:00 k3.sql 100% 0 0.0KB/s 00:00 .bash_profile 100% 193 0.2KB/s 00:00 .bash_logout 100% 18 0.0KB/s 00:00 .bash_history 100% 32 0.0KB/s 00:00 k.zip 100% 176 0.2KB/s 00:00 .bashrc 100% 231 0.2KB/s 00:00 [root@XX lk]#
原文:https://www.cnblogs.com/zealousness/p/9483484.html