LoginSignup
1
0

More than 5 years have passed since last update.

SSH 接続が極端に遅いときの対処法

Last updated at Posted at 2019-03-02

問題

個人で heteml というレンタルサーバーを契約している。
このレンタルサーバーは ssh 接続が可能なのだが、 ものすごく接続に時間を要する。(普通に1分とかかかる)

普通にストレスだし、一瞬で接続できて欲しい。

原因

ssh コマンドで接続を試みる際に -v オプションを付けてデバッグログを出してみると、

debug1: Next authentication method: gssapi-with-mic

という箇所で詰まっているのが分かる。

調べてみると、GSSAPIAuthentication という方式で認証を試みているのが原因らしい。
つまり、GSSAPIAuthentication で認証を試みないようにすれば解決するっぽい。

解決方法

~/.ssh/configGSSAPIAuthentication no してあげれば、解決する。

~/.ssh/config
Host *
  GSSAPIAuthentication no
1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0