IT分销/经销配置ssh对等性

配置SSH的对等性出错

# su – oracle   # mkdir ~/.ssh  # chmod 755 ~/.ssh  # /usr/bin/ssh-keygen -t rsa  # /usr/bin/ssh-keygen -t dsa  # touch ~/.ssh/authorized_keys  $ ssh db01 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys  $ ssh db01 cat ~/.ssh/id_dsa.p...显示全部
# su – oracle 
  # mkdir ~/.ssh
  # chmod 755 ~/.ssh
  # /usr/bin/ssh-keygen -t rsa
  # /usr/bin/ssh-keygen -t dsa
  # touch ~/.ssh/authorized_keys

  $ ssh db01 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
  $ ssh db01 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
  $ ssh db02 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
  $ ssh db02 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
  节点2:
bash-3.2$ ssh db02 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
oracle@db02's password:
WARNING: Your password has expired.
Password change required but no TTY available.

节点一上面测试成功收起
参与7

查看其它 6 个回答tesroom的回答

tesroomtesroom存储工程师DigitalChina
楼主做的方法不对,不是权限的问题,rsa和dsa两种加密方法选择一种即可。

楼主少做了一步
scp ~/.ssh/authorized_keys db02:.ssh/authorized_keys
电信运营商 · 2010-09-20
浏览5418

回答者

tesroom
存储工程师DigitalChina
擅长领域: 存储软件定义存储双活

tesroom 最近回答过的问题

回答状态

  • 发布时间:2010-09-20
  • 关注会员:0 人
  • 回答浏览:5418
  • X社区推广