1.服务端创建redhat用户
[root@localhost ~]# useradd redhat
[root@localhost ~]# password redhat
2.客户端创建密钥对
[root@localhost ~]# ssh-keygen -t rsa
3.复制公钥文件到服务端的该目录下
[root@localhost ~]# ssh-copy-id redhat@192.168.200.100
4.客户端登陆对端服务器
[root@localhost ~]# ssh redhat@192.168.200.100