传输文件夹:
scp -r 本地路径 远程用户名@远程IP地址:远程路径
例如
scp -r /home/localtest/ root@10.20.20.20:/home/desttest
传输文件方式相同,不带-r即可