首页 > Linux操作系统 > Linux操作系统 > 两个机子之间实现rcp
系统版本:
6.1.0.0
实现TESThost1 从TESThost2 机子上远程拷贝
配置过程中主要报错有三种:
TESThost1:/umts/IBPS_UP/IBPS2010001>
rcp TESThost2:/umts/IBPS_UP/IBPS2010001/* .
1.)
host: name TESThost2 NOT FOUND
解决方法:
在TESThost1中添加 TESThost2 的相关信息(IP 主机名)
添加/etc/hosts 文件
192.168.1.100 TESThost2
2.)
TESThost1:/umts/IBPS_UP/IBPS2010001>
rcp TESThost2:/umts/IBPS_UP/IBPS2010001/* .
rshd: 0826-826 The host name for your address is not known.
解决方法:
在对方机子(TESThost2)中添加TESThost1信息
添加/etc/hosts 文件
192.168.1.101 TESThost1
3.
mbfe1:/umts/IBPS_UP/IBPS2010001>rcp mbfe2:/umts/IBPS_UP/IBPS2010001/* .
rshd: 0826-813 Permission is denied.
解决方法:
在mbf2 上新建.rhosts, 在里面添加一个 “+” 即可
mbfe1:/>cat .rhosts
+
.rhosts 权限是600 即可
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21634752/viewspace-680879/ ,如需转载,请注明出处,否则将追究法律责任。