我在倆太機器上建立了等效性用戶,但是用等效性用戶訪問對方的時候 還需要密碼,為什麼啊?
我的配置如下:
.cat /etc/hosts
#add by wangry 20051226
192.168.10.71 db1
192.168.10.73 db3
192.168.100.71 db1-priv
192.168.100.73 db3-priv
192.168.10.171 db1-vip
192.168.10.173 db3-vip
在db1上:
mkdir ~/.ssh
chmod 755 ~/.ssh
/usr/bin/ssh-keygen -t rsa
/usr/bin/ssh-keygen -t dsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
ssh Oracle@db3 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh oracle@db3 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
在db3上:
mkdir ~/.ssh
chmod 755 ~/.ssh
/usr/bin/ssh-keygen -t rsa
/usr/bin/ssh-keygen -t dsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
ssh oracle@db1 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh oracle@db1 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
測試:
ssh db3 date :
[oracle@db1 ~]$ ssh db3 date
就不會出現
oracle@db3's passWord: (居然還要密碼)