1、配置ssh公钥
[root@db01 ~]# ssh-keygen
2、塞key(配置钥匙对)
[root@db01 ~]# ssh-copy-id 10.0.0.5
3、配置sshd
[root@db01 ~]# vim /etc/ssh/sshd_config
17 #Port 22 #sshd端口
19 #ListenAddress 0.0.0.0 #监听的IP地址
38 #PermitRootLogin yes #是否允许root账户登录
65 PasswordAuthentication yes #使用密码登录