互联网服务AIXssh

aix 5311 SSH问题

192.168.37.163  rac2

172.168.0.165   rac1-priv  
172.168.0.163   rac2-priv   

192.168.37.166  rac1-vip
192.168.37.167  rac2-vip


192.168.37.168  rac-scan
192.168.37.169  rac-scan
192.168.37.170  rac-scan
192.168.37.165  rac1  
$ ssh rac1
Connection closed by 192.168.37.165
$ ssh rac1 -v
OpenSSH_5.2p1, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Failed dlopen: /usr/krb5/lib/libkrb5.a(libkrb5.a.so):   0509-022 Cannot load module /usr/krb5/lib/libkrb5.a(libkrb5.a.so).
        0509-026 System error: A file or directory in the path name does not exist.

debug1: Error loading Kerberos, disabling Kerberos auth.
debug1: Connecting to rac1 [192.168.37.165] port 22.
debug1: Connection established.
debug1: identity file /home/oracle/.ssh/identity type -1
debug1: identity file /home/oracle/.ssh/id_rsa type 1
debug1: identity file /home/oracle/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.2
debug1: match: OpenSSH_5.2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'rac1' is known and matches the RSA host key.
debug1: Found key in /home/oracle/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/oracle/.ssh/identity
debug1: Offering public key: /home/oracle/.ssh/id_rsa
Connection closed by 192.168.37.165



为什么我SSH安装好了,建立密钥之后连本机也SSH不上。如果不建立密钥就要输入密码就可以。
参与4

4同行回答

shp2010shp2010系统架构师IBM
我记得 .ssh2 下面有个公钥: 是没有.pub 结尾的吧,把他copy 过来试试。显示全部
我记得 .ssh2 下面有个公钥: 是没有.pub 结尾的吧,把他copy 过来试试。收起
互联网服务 · 2011-05-14
浏览1740
aiaixaiaix数据库管理员浙大图灵软件技术有限公司
回复 3# myciciy     安装没有报错。如果不在oracle用户的.SSH目录下建立id_dsa.pub等密钥的话,就可以正常使用SSH$ ssh -VOpenSSH_5.2p1, OpenSSL 0.9.8k 25 Mar 2009$ oslevel -s5300-11-01-0944显示全部
回复 3# myciciy


    安装没有报错。
如果不在oracle用户的.SSH目录下建立id_dsa.pub等密钥的话,就可以正常使用SSH



$ ssh -V
OpenSSH_5.2p1, OpenSSL 0.9.8k 25 Mar 2009
$ oslevel -s
5300-11-01-0944收起
互联网服务 · 2011-05-13
浏览1731
myciciymyciciy联盟成员IT顾问某金融科技公司
debug1: Failed dlopen: /usr/krb5/lib/libkrb5.a(libkrb5.a.so):   0509-022 Cannot load module /usr/krb5/lib/libkrb5.a(libkrb5.a.so).        0509-026 System error: A file or directory in the path name does not exi...显示全部
debug1: Failed dlopen: /usr/krb5/lib/libkrb5.a(libkrb5.a.so):   0509-022 Cannot load module /usr/krb5/lib/libkrb5.a(libkrb5.a.so).
        0509-026 System error: A file or directory in the path name does not exist.

你的ssh版本对吗 安装没报错吗收起
银行 · 2011-05-12
浏览1772
zhangcc326zhangcc326系统运维工程师南京银行股份有限公司
不了解,路过,帮顶显示全部
不了解,路过,帮顶收起
银行 · 2011-05-12
浏览1793

提问者

aiaix
数据库管理员浙大图灵软件技术有限公司
擅长领域: 服务器主机

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2011-05-12
  • 关注会员:0 人
  • 问题浏览:8817
  • 最近回答:2011-05-14
  • X社区推广