ログは以下
[412]% cap deploy:setup [/home/hoge/work/sbmm/trunk]
* executing `deploy:setup’
* executing “sudo -p ‘sudo password: ‘ mkdir -p /home/www/hoge.com /home/www/hoge.com/releases /home/www/hoge.com/shared /home/www/hoge.com/shared/system /home/www/hoge.com/shared/log /home/www/hoge.com/shared/pids && sudo -p ‘sudo password: ‘ chmod g+w /home/www/hoge.com /home/www/hoge.com/releases /home/www/hoge.com/shared /home/www/hoge.com/shared/system /home/www/hoge.com/shared/log /home/www/hoge.com/shared/pids”
servers: ["hoge.com"]
D, [2008-10-10T22:33:54.682368 #25783] DEBUG — net.ssh.transport.session[1465226e]: establishing connection to hoge.com:22
D, [2008-10-10T22:33:54.997627 #25783] DEBUG — net.ssh.transport.session[1465226e]: connection established
I, [2008-10-10T22:33:54.997731 #25783] INFO — net.ssh.transport.server_version[14651e72]: negotiating protocol version
D, [2008-10-10T22:33:55.044883 #25783] DEBUG — net.ssh.transport.server_version[14651e72]: remote is `SSH-1.99-OpenSSH_4.5p1 FreeBSD-20061110′
D, [2008-10-10T22:33:55.044978 #25783] DEBUG — net.ssh.transport.server_version[14651e72]: local is `SSH-2.0-Ruby/Net::SSH_2.0.4 i386-freebsd7′
D, [2008-10-10T22:33:55.069675 #25783] DEBUG — tcpsocket[146520ca]: read 736 bytes
D, [2008-10-10T22:33:55.069838 #25783] DEBUG — tcpsocket[146520ca]: received packet nr 0 type 20 len 732
I, [2008-10-10T22:33:55.069941 #25783] INFO — net.ssh.transport.algorithms[14651bd4]: got KEXINIT from server
I, [2008-10-10T22:33:55.070104 #25783] INFO — net.ssh.transport.algorithms[14651bd4]: sending KEXINIT
D, [2008-10-10T22:33:55.070386 #25783] DEBUG — tcpsocket[146520ca]: queueing packet nr 0 type 20 len 508
D, [2008-10-10T22:33:55.070508 #25783] DEBUG — tcpsocket[146520ca]: sent 512 bytes
I, [2008-10-10T22:33:55.070569 #25783] INFO — net.ssh.transport.algorithms[14651bd4]: negotiating algorithms
D, [2008-10-10T22:33:55.070881 #25783] DEBUG — net.ssh.transport.algorithms[14651bd4]: negotiated:
* kex: diffie-hellman-group-exchange-sha1
* host_key: ssh-dss
* encryption_server: aes128-cbc
* encryption_client: aes128-cbc
* hmac_client: hmac-sha1
* hmac_server: hmac-sha1
* compression_client: none
* compression_server: none
* language_client:
* language_server:
D, [2008-10-10T22:33:55.070941 #25783] DEBUG — net.ssh.transport.algorithms[14651bd4]: exchanging keys
D, [2008-10-10T22:33:55.071215 #25783] DEBUG — tcpsocket[146520ca]: queueing packet nr 1 type 34 len 20
D, [2008-10-10T22:33:55.071302 #25783] DEBUG — tcpsocket[146520ca]: sent 24 bytes
D, [2008-10-10T22:33:55.200412 #25783] DEBUG — tcpsocket[146520ca]: read 152 bytes
D, [2008-10-10T22:33:55.200562 #25783] DEBUG — tcpsocket[146520ca]: received packet nr 1 type 31 len 148
D, [2008-10-10T22:33:55.210514 #25783] DEBUG — tcpsocket[146520ca]: queueing packet nr 2 type 32 len 140
D, [2008-10-10T22:33:55.210620 #25783] DEBUG — tcpsocket[146520ca]: sent 144 bytes
D, [2008-10-10T22:33:55.227215 #25783] DEBUG — tcpsocket[146520ca]: read 656 bytes
D, [2008-10-10T22:33:55.227381 #25783] DEBUG — tcpsocket[146520ca]: received packet nr 2 type 33 len 636
connection failed for: hoge.com (Net::SSH::HostKeyMismatch: fingerprint ho:ge does not match for “hoge.com,xxx.xxx.xx.xx.”)
対応は、hoge.comへsshでいったんアクセスして、~/.ssh/known_hostsにデータを登録してから再度実行する。
hoge.comの情報が変わっていたとき(
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!)なときは、、~/.ssh/known_hostsのhoge.comの情報が記録されている行を削除してからsshでいったんアクセス。
参考リンク
・http://idm.s9.xrea.com/ratio/2008/04/25/000770.html
・http://q.hatena.ne.jp/1187674127