互联网服务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-vip192.168.37.167  rac2-vip192.168.37.168  rac-scan192.168.37.169 &n...显示全部
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

查看其它 3 个回答aiaix的回答

aiaixaiaix数据库管理员浙大图灵软件技术有限公司
回复 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
浏览1726

回答者

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

aiaix 最近回答过的问题

回答状态

  • 发布时间:2011-05-13
  • 关注会员:0 人
  • 回答浏览:1726
  • X社区推广