Community Wiki

(dv):SSH connection troubleshooting

  • This page was last modified on December 15, 2010, at 17:31.
The (mt) Community Wiki is a collaborative project. Any (mt) Media Temple customer or employee may contribute. Not all articles and/or content have been tested for accuracy by (mt) Media Temple.

For officially moderated and tested articles, be sure to visit our KnowledgeBase.

From (mt) Community Wiki

Contents

  • 1 Troubleshooting SSH Connection Issues
    • 1.1 Sometimes when connecting over SSH, the prompt doesn't appear right away.

Troubleshooting SSH Connection Issues

Sometimes when connecting over SSH, the prompt doesn't appear right away.

SSH by default tries to look up the remote hostname to see if that hostname maps back to the same IP address. Please check if your reverse DNS is properly set.

For example: We've noticed the same issue while connecting to some servers because the reverse DNS IP we're connecting from is set to "reserved" which is not a correct DNS name


To disable this check and reduce the timeout:

Enable "UseDNS no" in /etc/ssh/sshd_config and restart the SSH service: "/etc/init.d/sshd restart || /etc/init.d/ssh restart"

Same thing as a one-liner:

sed -i 's/.*UseDNS.*/UseDNS no/g' /etc/ssh/sshd_config ; /etc/init.d/sshd restart || /etc/init.d/ssh restart

Here's the OpenSSH FAQ talking about the same issue: www.openssh.org/faq.html#3.3

Alternatively, make sure that you reverse DNS entry is set to a valid name. This can be set from the AccountCenter.

Retrieved from "wiki.mediatemple.net/w/(dv):SSH_connection_troubleshooting"
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.