scp命令格式:
scp + 源 + 目的
例如:
scp test.log root@192.168.1.100:/home
#把test.log文件拷贝到远端机器192.168.1.100的home目录上去
注意:
scp拷贝中,远端的地址必须都有:用户,ip和目录路径;
且形式是:
username@IPaddress:目录路径
例如:
root@192.168.3.145:/home/test/
scp命令格式:
scp + 源 + 目的
例如:
scp test.log root@192.168.1.100:/home
#把test.log文件拷贝到远端机器192.168.1.100的home目录上去
注意:
scp拷贝中,远端的地址必须都有:用户,ip和目录路径;
且形式是:
username@IPaddress:目录路径
例如:
root@192.168.3.145:/home/test/