{"id":151,"date":"2012-10-12T11:53:32","date_gmt":"2012-10-12T03:53:32","guid":{"rendered":"http:\/\/karyleong.net\/?p=151"},"modified":"2012-10-12T11:53:32","modified_gmt":"2012-10-12T03:53:32","slug":"rhel-6-centos-6-slow-ssh-logins-with-dns-timeouts","status":"publish","type":"post","link":"https:\/\/karyleong.net\/?p=151","title":{"rendered":"RHEL 6\/ CentOS 6: Slow SSH logins with DNS timeouts"},"content":{"rendered":"<p>If you&#8217;re experiencing slow logins via SSH on a Red Hat Enterprise 6 or CentOS 6 system, it&#8217;s probably caused by DNS that is taking too long to respond. Even with correct nameservers in \/etc\/resolv.conf, you may still find yourself stuck with slow logins.<\/p>\n<p>The solution is to add the following line to your \/etc\/resolv.conf. Just add it all the way at the bottom, as the last line.<\/p>\n<p><code>options single-request-reopen<\/code><\/p>\n<p>That should fix your slow SSH logins, given you have valid and fast-responding nameservers in your \/etc\/resolv.conf.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re experiencing slow logins via SSH on a Red Hat Enterprise 6 or CentOS 6 system, it&#8217;s probably caused by DNS that is taking too long to respond. Even with correct nameservers in \/etc\/resolv.conf, you may still find yourself stuck with slow logins. The solution is to add the following line to your \/etc\/resolv.conf. &#8230; <a title=\"RHEL 6\/ CentOS 6: Slow SSH logins with DNS timeouts\" class=\"read-more\" href=\"https:\/\/karyleong.net\/?p=151\" aria-label=\"More on RHEL 6\/ CentOS 6: Slow SSH logins with DNS timeouts\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/posts\/151"}],"collection":[{"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/karyleong.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=151"}],"version-history":[{"count":1,"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/posts\/151\/revisions"}],"predecessor-version":[{"id":152,"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/posts\/151\/revisions\/152"}],"wp:attachment":[{"href":"https:\/\/karyleong.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/karyleong.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=151"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/karyleong.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}