要求:
1、配置ssh免密登陆:客户端主机通过redhat用户基于秘钥验证方式进行远程连接服务器的root用户
解答代码:
[as@localhost ~]$ su root
[root@localhost as]# useradd redhat
[redhat@localhost as]$ ssh-keygen -t rsa
[redhat@localhost .ssh]$ ssh-copy-id root@192.168.26.128
[redhat@localhost .ssh]$ ssh root@192.168.26.128