ほるっふー

自宅のベランダに鳩が住み着いた話を5万人の前ですること。

svn + sshで『ネットワーク接続が突然切られました』と言われる

svnリポジトリを持っているサーバーAからファイルをチェックアウトしているサーバーBでsvn upを試みたところネットワークが切られた。

[ServerB] smith: svndirectory $ svn up

svn: To better debug SSH connection problems, remove the -q option from 'ssh' in the [tunnels] section of your Subversion configuration file.

svn: ネットワーク接続が突然切られました

そういえばサーバーAのOSが更新されてたんだった。

試しにsshしてみると

[ServerBsmith: svndirectory $ ssh ServerA

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!

Someone could be eavesdropping on you right now (man-in-the-middle attack)!

It is also possible that the RSA host key has just been changed.

The fingerprint for the RSA key sent by the remote host is

0x:0x:0x:0x:0x:0x:0x:0x:0x:0x:0x:0x:0x:0x:0x:0x.

Please contact your system administrator.

Add correct host key in /home/smith/.ssh/known_hosts to get rid of this message.

Offending key in /home/smith/.ssh/known_hosts:1

RSA host key for ServerA has changed and you have requested strict checking.

Host key verification failed.

うむ繋がらない、ということなので ~/.ssh/known_hostsにあるサーバーAの行を削除すると繋がりました。