Tuesday 17 January 2017

Faster login to Linux via SSH

It usually took a very long time to login my Linux VMs (CentOS 6, 7 and SuSE11 SP3) via SSH.

After some research, I've found the following.

RHEL 7
[abc@RHEL7 ~]# vi /etc/ssh/sshd_config
Set GSSAPIAuthentication no
[abc@RHEL7 ~]# service sshd restart

Other Linux distros
[abc@CentOS ~]# vi /etc/ssh/sshd_config
Set UseDNS no

[abc@CentOS ~]# vi /etc/resolv.conf
options single-request-reopen ;in the last line. No network restart required

I didnt even update resolv.conf part, it is working very fast for CentOS 7.2. It might be different on other distros.

Ref: https://access.redhat.com/discussions/1173853

No comments:

Post a Comment