From the course: Linux System Engineer: Networking and SSH

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Optimize SSH for speed

Optimize SSH for speed

From the course: Linux System Engineer: Networking and SSH

Start my 1-month free trial

Optimize SSH for speed

- [Instructor] SSH is secure first and fast second. When we're using it on a local trusted network, we might want to optimize it for the fastest performance even if it means we give up a little bit of security. When connecting to another host, SSH tries various forms of authentication, one after another. If we're using keys, we can tell it to skip straight to public key authentication. Long options like this are best put in the per user configuration files, which we covered earlier in this course. If it takes a really long time to log in, then you have a problem with your DNS system. SSH tries to do a reverse DNS lookup for security reasons. The best solution is to fix your DNS server, but if this is outside your control, you can turn off DNS lookups in your SSH server configuration. This would be done on the remote SSH server configuration N/SE/SSH/SSHD_config. Change use DNS = yes to use DNS = no. Be sure to restart the remote SSH service for it to be active. We can also have…

Contents