Many times I have encountered this issue that user is waiting for long duration to get password prompt. I used to type fast and working on couple of windows so hate to wait for longer duration just to insert my password.
I have searched about this issue and found out the cause so sharing that with you all to avoid waiting window. Solution is very simple.
Whenever user is login using SSH its going through reverse DNS lookup and searching host details from machine IP address before login to machine. This is helpful for security purpose but our default configuration and SELINUX security does that job anyway.
This is default setting present in sshd_config for reverse DNS lookup.
Modify it by removing # and changing ‘yes’ to ‘no’
Note that I have used sed to find and replace the text. -i.bkp is used to create backup copy of sshd_config file before modifying it. Its good practice to have a backup copy of configuration file before modifying it to crosscheck if anything goes wrong
sshd_config.bkp file is created at same location before modification.
Check config file is updated properly.
Restart sshd service to take effect of this change.
Now try logging using another window. You will get password prompt immediately without any delay. ENJOY 🙂