認証後の SSH 接続が遅い

認証後の SSH 接続が遅い

SSHで接続してプロンプトが表示されるまでに1分ほどかかるサーバーがいくつかあります。接続するssh -vvvとハングします認証は成功したので、通常のこと ( UseDNS no、GSSAPI の無効化など) ではありません。

認証後のログには次のように表示されます。

debug1: Authentication succeeded (publickey).
Authenticated to xxxx.example.com ([2a01:.......]:22).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Requesting [email protected]
debug3: send packet: type 80
debug1: Entering interactive session.
debug1: pledge: network
debug1: ENABLE_VIRTUAL_TERMINAL_INPUT is supported. Reading the VTSequence from console
debug3: This windows OS supports conpty
debug1: ENABLE_VIRTUAL_TERMINAL_PROCESSING is supported. Console supports the ansi parsing
debug3: Successfully set console output code page from:65001 to 65001
debug3: Successfully set console input code page from:437 to 65001

その後、しばらくハングアップし、その後は通常どおり続行されます。

debug3: send packet: type 80
debug3: send packet: type 80
debug3: receive packet: type 80
debug1: client_input_global_request: rtype [email protected] want_reply 0
debug3: receive packet: type 4
debug1: Remote: /home/daniel/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug3: receive packet: type 4
debug1: Remote: /home/daniel/.ssh/authorized_keys:1: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding
debug3: receive packet: type 91
debug2: channel_input_open_confirmation: channel 0: callback start
... cut for brevity ...

その後は瞬時に接続されます。

実際のセッションは問題なく、速度低下もありませんが、最初に接続したときにハングアップしている間に何が起こっているのかわかりません。

何か案は?

関連情報