- 論壇徽章:
- 3
|
最近在部署MHA實現(xiàn)mysql的高可用,其中一個環(huán)節(jié)就是測試自動切換的VIP漂移。
我如果手動執(zhí)行ssh 192.168.208.47 “/sbin/ifconfig eth0:3 192.168.208.239”,可以正常修改192.168.208.47的IP信息
但是通過MHA自動調(diào)用的時候就一直卡在ssh認證階段(之前配置過SSH免鑒權(quán)),以下為具體ssh過程信息:
IN SCRIPT TEST====sudo /sbin/ifconfig eth0:3 down==sudo /sbin/ifconfig eth0:3 192.168.208.239===
Disabling the VIP on old master: 192.168.208.47
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.208.47 [192.168.208.47] port 22.
debug1: Connection established.
debug1: identity file /home/mysql/.ssh/identity type -1
debug1: identity file /home/mysql/.ssh/identity-cert type -1
debug1: identity file /home/mysql/.ssh/id_rsa type 1
debug1: identity file /home/mysql/.ssh/id_rsa-cert type -1
debug1: identity file /home/mysql/.ssh/id_dsa type -1
debug1: identity file /home/mysql/.ssh/id_dsa-cert type -1
debug1: identity file /home/mysql/.ssh/id_ecdsa type -1
debug1: identity file /home/mysql/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3
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 '192.168.208.47' is known and matches the RSA host key.
debug1: Found key in /home/mysql/.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
debug1: Next authentication method: publickey
debug1: Trying private key: /home/mysql/.ssh/identity
debug1: Offering public key: /home/mysql/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: read PEM private key done: type RSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
之后就一直卡在這里,網(wǎng)上找的方法試過很多,但是都沒有成功,比如修改/etc/hosts里的主機信息,添加本機和目標(biāo)機器的IP和主機名
又比如修改/etc/ssh/sshd_config參數(shù),啟動TCPKeepAlive yes,添加UseDns no,GSSAPIAuthentication 改為no,這些方法都試過,但是就是不行。。。。
請問各位,該如何解決呢? |
|