[ubuntu-jp:1652] Re: ssh-keygen -R hoge での質問。

Taro Yamashita taro @ panther-king.com
2009年 3月 17日 (火) 02:20:33 GMT


こんにちは。Taroと申します。

ハズしているかもしれませんが、以前似たような
状況に遭遇し、その時は.ssh/下のknown_hostsファイルを
一旦削除する事によって解決しました。

known_hostsに書かれている情報が古いのではないか??と
思うのですが、あまり自信はありません…。

Taro

Nobuyuki Inaba さんは書きました:
> いつもお世話になっています。
> 稲葉と申します。
> 
> 接続先のマシンを hoge として説明させていただきます。
> 
> ssh -X hoge
> としていつも接続していましたが、hogeのUbuntuを再インストールしまして、
> 
> ssh -X hoge
> としますと、
> 
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> @    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
> 89:48:a2:1e:0b:19:a2:54:a0:75:98:1d:9c:a4:71:af.
> Please contact your system administrator.
> Add correct host key in /home/inaba/.ssh/known_hosts to get rid of this message.
> Offending key in /home/inaba/.ssh/known_hosts:1
> RSA host key for hoge has changed and you have requested strict checking.
> Host key verification failed.
> 
> と表示され、つながらなくなりまして、わからないなりに調べたら、
> 
> ssh-keygen -R hoge
> 
> とすればよいような記述がありまして、それはつながるようになったのですが、
> 
> 今度は
> ssh -X hoge
> としますと、毎回
> Warning: the RSA host key for 'hoge' differs from the key for the IP
> address '.203.197.168.17'
> Offending key for IP in /home/inaba/.ssh/known_hosts:2
> Matching host key in /home/inaba/.ssh/known_hosts:3
> Are you sure you want to continue connecting (yes/no)?
> と聞いてきます。
> 何か、間違っている事をしているのではと思い、メールしました。
> なにか、やりこのしていることとか、間違っていることがあるようでしたら、
> すみませんが教えていただけないでしょうか。
> よろしくおねがいします。
> 
> (ここに出ている、RSA key 、IP address は適当に変更しています.)
> 
> 



ubuntu-jp メーリングリストの案内