Linux

Optimize SSH Configuration to Reduce Delay

If you're experiencing SSH delay after blocking international traffic, you can optimize SSH configuration to reduce delays

Enable Compression to reduce data transfer: Edit your SSH client configuration file (~/.ssh/config) and add:

Compression yes

Disable DNS Lookup on the SSH server: Open the SSH server configuration file (/etc/ssh/sshd_config) and ensure the UseDNS line is set to no:

UseDNS no

Restart SSH Service

service sshd restart

Thanks for visit my website