SSH远程登陆后,使用下面的命令进行拷贝:

拷贝文件夹如下:

scp -r /home/testdir/ root@ip:/home

拷贝文件如下:

scp /home/testdir/test.txt root@ip:/home/testdir