【CentOS 7】scp示例

时间:2023-03-09 22:52:20
【CentOS 7】scp示例

1,从远端拷贝到本地 /tmp路径

root@raspberrypi:/download/api_weather# scp root@123.207.xxx.xxx:/xxx/* /tmp

2,从本地拷贝到远端 /tmp路径

root@raspberrypi:/download# ll
总用量
drwxr-xr-x root root 12月 : api_weather
-rwxrwxrwx root root 8月 phddns_rapi_3.0.1.armhf.deb
-rw-r--r-- root root 12月 : test.php
root@raspberrypi:/download#
root@raspberrypi:/download# scp test.php root@123.207.xxx.xxx:/tmp
root@123.207.xxx.xxx's password:
test.php % .0KB/s :