SSH認証ダイアログで数秒の待ちが発生する
Open Date: 2011-07-28 00:51
Letztes Update: 2011-08-16 21:37
Reporter: | sunnyone | Eigentümer: | (None) |
---|---|---|---|
Priority: | 5 - Medium | MileStone: | (None) |
Type: | Bugs | Severity: | 5 - Medium |
Component: | TTSSH | Status: | Closed |
Resolution | Fixed |
Details
「新しい接続」ダイアログよりIPアドレスを入力し「OK」をクリックすると、「SSH認証」ダイアログが表示されますが、 数秒間の間マウスカーソル+砂時計の状態となり、ユーザ名/パスフレーズの入力ができません。
(数秒待つと(この環境では)rhosts(SSH1)を使うがグレーアウトされ、砂時計が消え、ユーザ名/パスフレーズが入力できるようになります。)
この待ちをなくすことは可能でしょうか。
パケットキャプチャを見ると、サーバから「Server: Key Exchange Init」のパケットが 来てACKを返した後、待ち状態となり、クライアントが3秒後に「Client: Key Exchange Init」の パケットを送信しています。ですので、クライアント側の問題なのですが、この間に時間の かかる処理があるのでしょうか。
時系列にすると、以下の通りとなります(ログは秒の精度なので、多少前後するとは思います)。
00:06:59.58 パケット: 「Client Protocol: SSH-2.0-TTSSH/2.57...」 00:06:59 ログ: 「name: client ID」のメッセージ 00:06:59.58 パケット: 「Server: Key Exchange Init」受信 (00:06:59.78 パケット:「Server: Key Exchange Init」に対するACK送信) (空白の3秒) 00:07:02 ログ: 「name: KEXINIT」「description: exchange algorithm list: receiving」のメッセージ 00:07:02.38 パケット 「Client: Key Exchange Init」送信
■環境 ・Windows Vista ・TeraTerm 4.70
■ログ
TTSSH.LOG ~~~ Thu Jul 28 00:06:59 2011 [5660] --------------------------------------------------------------------- Thu Jul 28 00:06:59 2011 [5660] Initiating SSH session Thu Jul 28 00:06:59 2011 [5660] Received server prologue string: SSH-2.0-OpenSSH_5.1p1 Debian-5 Thu Jul 28 00:07:02 2011 [5660] SSH2_MSG_KEXINIT was sent at SSH2_send_kexinit(). Thu Jul 28 00:07:02 2011 [5660] SSH2_MSG_KEXINIT was received. Thu Jul 28 00:07:02 2011 [5660] KEX algorithm: diffie-hellman-group-exchange-sha256 Thu Jul 28 00:07:02 2011 [5660] server host key algorithm: ssh-rsa Thu Jul 28 00:07:02 2011 [5660] encryption algorithm client to server: aes256-ctr Thu Jul 28 00:07:02 2011 [5660] encryption algorithm server to client: aes256-ctr Thu Jul 28 00:07:02 2011 [5660] MAC algorithm client to server: hmac-sha1 Thu Jul 28 00:07:02 2011 [5660] MAC algorithm server to client: hmac-sha1 Thu Jul 28 00:07:02 2011 [5660] compression algorithm client to server: none Thu Jul 28 00:07:02 2011 [5660] compression algorithm server to client: none Thu Jul 28 00:07:02 2011 [5660] SSH2_MSG_KEX_DH_GEX_REQUEST was sent at SSH2_dh_gex_kex_init(). Thu Jul 28 00:07:02 2011 [5660] SSH2_MSG_KEX_DH_GEX_GROUP was received. Thu Jul 28 00:07:02 2011 [5660] SSH2_MSG_KEX_DH_GEX_INIT was sent at handle_SSH2_dh_gex_group(). Thu Jul 28 00:07:02 2011 [5660] SSH2_MSG_KEX_DH_GEX_REPLY was received. Thu Jul 28 00:07:02 2011 [5660] SSH2_MSG_NEWKEYS was sent at handle_SSH2_dh_gex_reply(). Thu Jul 28 00:07:02 2011 [5660] SSH2_MSG_NEWKEYS was received(DH key generation is completed). ~~~ ssh2connect.log(抜粋) ~~~ <<< Tera Term SSH2 log dump >>> saved time: 2011/07/28 00:07:02 ============================================ name: pure server ID -------------------------------------------- description: start protocol version exchange -------------------------------------------- time: Thu Jul 28 00:06:59 2011 ============================================ 00000000 : 5353482D 322E302D 4F70656E 5353485F SSH-2.0-OpenSSH_ 00000010 : 352E3170 31204465 6269616E 2D350D0A 5.1p1 Debian-5.. ============================================ name: server ID -------------------------------------------- description: (null) -------------------------------------------- time: Thu Jul 28 00:06:59 2011 ============================================ 00000000 : 5353482D 322E302D 4F70656E 5353485F SSH-2.0-OpenSSH_ 00000010 : 352E3170 31204465 6269616E 2D35 5.1p1 Debian-5 ============================================ name: client ID -------------------------------------------- description: (null) -------------------------------------------- time: Thu Jul 28 00:06:59 2011 ============================================ 00000000 : 5353482D 322E302D 54545353 482F322E SSH-2.0-TTSSH/2. 00000010 : 35372057 696E3332 57 Win32 ============================================ name: KEXINIT -------------------------------------------- description: exchange algorithm list: receiving -------------------------------------------- time: Thu Jul 28 00:07:02 2011 ============================================ 00000000 : 6D93756C 9805D5BF BEF0E76F BAA498E5 m.ul.......o.... 00000010 : 0000007E 64696666 69652D68 656C6C6D ...~diffie-hellm 00000020 : 616E2D67 726F7570 2D657863 68616E67 an-group-exchang 00000030 : 652D7368 61323536 2C646966 6669652D e-sha256,diffie- 00000040 : 68656C6C 6D616E2D 67726F75 702D6578 hellman-group-ex 00000050 : 6368616E 67652D73 6861312C 64696666 change-sha1,diff 00000060 : 69652D68 656C6C6D 616E2D67 726F7570 ie-hellman-group 00000070 : 31342D73 6861312C 64696666 69652D68 14-sha1,diffie-h 00000080 : 656C6C6D 616E2D67 726F7570 312D7368 ellman-group1-sh 00000090 : 61310000 000F7373 682D7273 612C7373 a1....ssh-rsa,ss (略) ~~~
■パケット
Last Update of this Ticket
2011-08-16 21:37 Update by: maya
- Ticket Close date set to 2011-08-16 21:37
- Status Update from Open to Closed.
- Resolution Update from None to Fixed.