SSH遠程登陸後,使用下面的命令進行拷貝:
拷貝文件夾如下:
scp -r /home/testdir/ root@ip:/home
拷貝文件如下:
scp /home/testdir/test.txt root@ip:/home/testdir