[Mew-dist 15902] Re: POP/SSHでネットワークが切れているとき

HAYASHI Chifumi ( 林 千史 ) chifumi at example.com
2001年 1月 15日 (月) 09:36:39 JST


林です。

On Fri, 12 Jan 2001 15:48:49 +0900,
Kazu Yamamoto (山本和彦) <kazu at example.com> wrote:

> From: KOIE Hidetaka (鯉江英隆) <hide at example.com>
> Subject: [Mew-dist 15868] POP/SSHでネットワークが切れているとき
> 
> > ネットワークカード(pccard)が抜けているときにSSHを実行するとこうなります。
> > #OpenSSHのバージョンは古いです。
> > Secure connection to XXX on port 22 refused.                    <=注目

> どなたか、SSH 1 と 2 でどう表示されるか調べて頂けると嬉しいです。

SSH2 では

━━━━━━━━━━━━━━ここから━━━━━━━━━━━━━━
$ ssh2 -V
ssh2: SSH Secure Shell 2.3.0 (non-commercial version) on i686-pc-linux-gnu
$ ssh2 -v -o 'ConnectionAttempts=1' 10.1.6.152
debug: hostname is '10.1.6.152'.
debug: Unable to open /home/chifumi/.ssh2/ssh2_config
debug: connecting to 10.1.6.152...
debug: entering event loop
FATAL: Connecting to 10.1.6.152 failed: Destination Unreachable
$ ssh2 -v -o 'ConnectionAttempts=1' 192.168.0.1
debug: hostname is '192.168.0.1'.
debug: Unable to open /home/chifumi/.ssh2/ssh2_config
debug: connecting to 192.168.0.1...
debug: entering event loop
FATAL: Connecting to 192.168.0.1 failed: Connection Refused
$ 
━━━━━━━━━━━━━━ここまで━━━━━━━━━━━━━━

ということで、

+(defconst mew-ssh-msg-refused
+  '("Secure connection .* refused\\." "FATAL: Connecting .* failed:" "Secure connection .* refused\\."))

でうまくいくようです。
(はじめはこれでうまく行かないように見えました(固まってしまう)が、pop
server の名前解決のために DNS サーバを捜しに行ってしまっていたようで、
/etc/hosts に追加したら大丈夫でした。)

ただ、「Connecting to the SSH server ... 」が出たままで、
「Can't connect to the SSH server」に変わりません。
-- 
 林 千史  chifumi at example.com



Mew-dist メーリングリストの案内