1.远程拷贝文件
[root@rhel8-client01 yum.repos.d]# scp [email protected]:/etc/yum.repos.d/* . (.表示拷贝到当前文件夹下)
[root@rhel8-client01 yum.repos.d]# scp [email protected]:/etc/yum.repos.d/* /etc/yum.repos.d
输入192.168.72.149远程主机的密码
2.远程拷贝文件夹
[root@rhel8-client01 yum.repos.d]# scp -r [email protected]:/etc/yum.repos.d/* .
3.远程上传文件
[root@rhel8-client01 yum.repos.d]# scp /etc/yum.repos.d/* [email protected]:/etc/yum.repos.d/
输入192.168.72.150远程主机的密码
4.远程上传文件夹
[root@rhel8-client01 yum.repos.d]# scp -r /etc/yum.repos.d [email protected]:/etc/
标签:--,上传下载,192.168,etc,72.149,yum,root,SCP,repos From: https://www.cnblogs.com/wlbl-dd/p/16594960.html