<html style="direction: ltr;">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<style type="text/css">body p { margin-bottom: 0.2cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;" bidimailui-charset-is-forced="true"
bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 22/03/15 12:50, Gabor Szabo wrote:<br>
</div>
<blockquote
cite="mid:CABe4FJC1Q_U2u6zVe3dDrbDhfb-mt9Dufd3nVjhsH4gm0H-t9w@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,</div>
</blockquote>
<br>
<blockquote
cite="mid:CABe4FJC1Q_U2u6zVe3dDrbDhfb-mt9Dufd3nVjhsH4gm0H-t9w@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>It takes ages to ssh to it, once I got to the machine I can
ping IP addresses from it, but I cannot ping anything with a
hostname.</div>
<div><br>
</div>
</div>
</blockquote>
Add to the sshd_config file the following line:<br>
UseDNS no<br>
<br>
This will speed up the ssh connection regardless of whether DNS is
resolving properly.<br>
<br>
In theory, there is a reason ssh requires reverse DNS lookup. I
never managed to find out what it was (except making the logs more
pretty, which is a very small reward for such a huge price to pay).<br>
<br>
Shachar<br>
</body>
</html>