{"id":246,"date":"2016-03-02T16:48:29","date_gmt":"2016-03-02T15:48:29","guid":{"rendered":"http:\/\/104.198.79.120\/?p=246"},"modified":"2016-03-02T16:48:29","modified_gmt":"2016-03-02T15:48:29","slug":"slow-ssh-login-in-debian-ubuntu-linux","status":"publish","type":"post","link":"https:\/\/wp.gaborhargitai.hu\/slow-ssh-login-in-debian-ubuntu-linux\/","title":{"rendered":"Slow SSH Login in Debian \/ Ubuntu Linux"},"content":{"rendered":"

Generally speaking, even the password prompt should not take a lot of time (more than a few seconds) to pop up during the initial connection state. However, leaving parts of the\u00a0SSH daemon<\/strong> unconfigured can lead to communication mismatch and timeout troubles under the hood – luckily, two lines of configuration editing will solve this issues for us.<\/p>\n

Please note: I’m assuming that you are\u00a0not using GSSAPI<\/strong> authentication (by default if you do not know what it is, then it is safe to assume that you are not using it – more on that on this Wiki page<\/a>).<\/p>\n

The other function we are going to disable is the\u00a0Reverse DNS lookup\u00a0<\/strong> function which only serves as an added logging feature.<\/p>\n

Under Ubuntu, the default config file for\u00a0sshd\u00a0<\/strong>is located here:<\/p>\n

\/etc\/ssh\/sshd_config<\/p><\/blockquote>\n

So, editing the GSSAPI line lines like this:<\/p>\n

GSSAPIAuthentication no<\/code><\/p>\n

And adding (if it not exist) this:<\/p>\n

UseDNS no<\/code><\/p>\n

We should be logging in as swiftly as ever!<\/p>\n","protected":false},"excerpt":{"rendered":"

Generally speaking, even the password prompt should not take a lot of time (more than a few seconds) to pop up during the initial connection state. However, leaving parts of the\u00a0SSH daemon unconfigured can lead to communication mismatch and timeout troubles under the hood – luckily, two lines of configuration editing will solve this issues […]<\/p>\n","protected":false},"author":1,"featured_media":247,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[8,7],"tags":[],"_links":{"self":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/246"}],"collection":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/comments?post=246"}],"version-history":[{"count":1,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/246\/revisions"}],"predecessor-version":[{"id":248,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/246\/revisions\/248"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/media\/247"}],"wp:attachment":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/media?parent=246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/categories?post=246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/tags?post=246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}