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
これで解決した。