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 个回答aix5l的回答

aix5laix5l软件开发工程师qq
你在两台机器上,已oracle用户的身份改下(更新)自己的密码就可以了。
#su - oracle
$passwd
互联网服务 · 2012-01-13
浏览5426

回答者

aix5l
软件开发工程师qq
擅长领域: 服务器网络数据中心

aix5l 最近回答过的问题

回答状态

  • 发布时间:2012-01-13
  • 关注会员:0 人
  • 回答浏览:5426
  • X社区推广