Update rcp.md

This commit is contained in:
小弟调调™ 2017-02-09 23:25:03 +08:00 committed by GitHub
parent e228354715
commit 025858d268
1 changed files with 124 additions and 127 deletions

View File

@ -39,11 +39,8 @@ directory 每个文件或目录参数既可以是远程文件名也可以是本
只对root用户生效
1、在双方root用户根目录下建立rhosts文件并将双方的hostname加进去。在此之前应在双方的`/etc/hosts`文件中加入对方的ip和hostname
2、把rsh服务启动起来redhat默认是不启动的。
方法用执行ntsysv命令在rsh选项前用空格键选中确定退出。然后执行`service xinetd restart`即可。
3、到`/etc/pam.d/`目录下把rsh文件中的`auth required /lib/security/pam_securetty.so`一行用“#”注释掉即可。只有注释掉这一行才能用root用户登录
**将当前目录下的 test1 复制到名为 webserver1 的远程系统:**