LoginSignup
3
2

More than 5 years have passed since last update.

sshで繋ごうとすると接続確立までが遅い時の対処法

Last updated at Posted at 2019-03-22

ssh接続がなんか遅い

ローカルネットワークのみに接続している実Linuxマシン。OSはCentOS 7.6。
手元のPCからssh接続すると接続が確立するまで長いウェイトが入る。
なんとかしたい。

sshd_configを書き換える

console
[root@xxxxx ~]# cp -p /etc/ssh/sshd_config /etc/ssh/sshd_config.org
[root@xxxxx ~]# vi /etc/ssh/sshd_config
[root@xxxxx ~]# diff /etc/ssh/sshd_config /etc/ssh/sshd_config.org
18c18
< AddressFamily inet
---
> #AddressFamily any
79c79
< GSSAPIAuthentication no
---
> GSSAPIAuthentication yes
115c115
< UseDNS no
---
> #UseDNS yes
[root@xxxxx ~]# systemctl reload sshd

これで解決した。

3
2
0

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
3
2