快捷搜索:   服务器  安全  linux 安全  MYSQL  dedecms

linux下配置rsh无密码登录

  1、安装rsh-server软件包

  2、删除krb5-workstation软件包

  3、配置:

  两个节点都要操作:

  编辑/etc/xinetd.d/rsh和/etc/xinetd.d/rlogin文件,将disable=yes更改为disable=no,然后重启xinetd进程。

  将rexec、rlogin、rsh加入到/etc/securetty里面:

  echo "rexec" >> /etc/securetty

  echo "rlogin" >> /etc/securetty

  echo "rsh" >> /etc/securetty

  4、编辑/etc/hosts.equiv文件,加入以下内容:

  [root@vistor ~]# cat /etc/hosts.equiv

  vistor

  server1

  5、编辑~/.rhosts文件,加入以下内容:

  [root@vistor ~]# cat .rhosts

  vistor root

  server1 root

  到此你就可以疯狂的rsh了,哈哈!!!

顶(0)
踩(0)

您可能还会对下面的文章感兴趣:

最新评论