Delayed or Slow SSH Connection on Mac OS X Systems Fix
When conducting a vulnerability security scan of a Mac OS X system and attempting to obtain credentialed information, it maybe required some configuration changes occur. Often the SSH connections on Mac OS X systems has long delays that will fail when the vulnerability scanner tries to log-in. To solve the problem, follow the below recommendations.
Update Client Configuration
sudo vi /etc/ssh_config
Replace this line:
#GSSAPIKeyExchange yes
by:
GSSAPIKeyExchange no
Be aware you must also remove the sharp symbol (#)
Update Server Configuration
sudo vi /etc/sshd_config
Replace this line:
#UseDNS yes
by:
UseDNS no
Again, be aware you must remove the sharp symbol (#).
An additional course of action would be to add the IP addresses you’re going to connect to (or which are going to connect to your mac) in /etc/hosts.
Leave a Reply
Want to join the discussion?Feel free to contribute!