{"id":1025,"date":"2021-10-08T13:50:19","date_gmt":"2021-10-08T13:50:19","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2021\/10\/08\/5634587-how-to-solve-the-most-common-errors-in-ssh-at-hostinger\/"},"modified":"2026-03-16T12:12:10","modified_gmt":"2026-03-16T12:12:10","slug":"5634587-how-to-solve-the-most-common-errors-in-ssh-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/5634587-how-to-solve-the-most-common-errors-in-ssh-at-hostinger\/","title":{"rendered":"How to Solve the Most Common Errors in SSH at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">If your hosting plan is Premium or greater and you have <b><a href=\"\/support\/1583645-do-i-get-ssh-access-how-to-enable-ssh-access\" target=\"_blank\" class=\"intercom-content-link\">enabled SSH access<\/a><\/b>, you can connect via SSH using any SSH client. In case you are facing connectivity issues, here are some common errors and their corresponding solutions:<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_e843ac8256\">Connection closed<\/h2><p class=\"no-margin\">If you encounter a message indicating that the connection to your hosting IP closed right after trying to connect:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2021\/10\/7828522c-fcc7-4770-8d8b-196bcd5257c7.jpg\" alt=\"The connection closed error message on SSH\"><\/div><p class=\"no-margin\">This is usually caused by a disabled SSH access. <b><a href=\"\/support\/1583645-do-i-get-ssh-access-how-to-enable-ssh-access\" target=\"_blank\" class=\"intercom-content-link\">Enable SSH Access<\/a><\/b> and try to connect again.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_03dbd974b4\">The terminal closes right away<\/h2><p class=\"no-margin\">If your terminal closes immediately after entering your SSH password, <b>disable<\/b> and <b><a href=\"\/support\/1583645-do-i-get-ssh-access-how-to-enable-ssh-access\" target=\"_blank\" class=\"intercom-content-link\">re-enable SSH Access<\/a><\/b> &ndash; the next connection should be successful. <\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_98a040f743\">Permission denied or access denied<\/h2><p class=\"no-margin\">If you get a &ldquo;Permission denied, please try again&rdquo; message:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2021\/10\/f722dd0b-75a3-437a-bed6-9b6a78634be3.jpg\" alt=\"The permission denied error message on SSH\"><\/div><p class=\"no-margin\">It means that you are using <b>incorrect SSH credentials<\/b>. Verify your SSH password:<\/p><ul>\n<li>\n<p class=\"no-margin\">When you first set up your hosting plan, the SSH password is the same as the FTP password of your <b>main domain<\/b><\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Double-check if you have set an <b><a href=\"\/support\/6440760-how-to-change-ssh-password-on-hpanel\" target=\"_blank\" class=\"intercom-content-link\">SSH-only password<\/a><\/b> <\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">If you are not sure about the password value, <b><a href=\"\/support\/5634574-how-to-change-your-ftp-password-on-hpanel\" target=\"_blank\" class=\"intercom-content-link\">set a new password<\/a> for both FTP and SSH<\/b> or create an <b>SSH-only password<\/b> <\/p>\n<\/li>\n<\/ul><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">If you want to connect via SSH without a password, you can <b><a href=\"\/support\/5634532-how-to-generate-ssh-keys-and-add-them-to-hpanel\" target=\"_blank\" class=\"intercom-content-link\">set up an SSH key<\/a><\/b> instead &#128161; <\/p>\n<\/div><p class=\"no-margin\">\n<\/p><h2 id=\"h_944a51723f\">Connection refused<\/h2><p class=\"no-margin\">This error is usually caused by using the <b>wrong port<\/b>. Make sure to set the connection port to <b>65002<\/b>.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">You can check more possible causes and their solutions in the following video: <\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-h2b-video\">\n<iframe loading=\"lazy\" title=\"How to Fix the SSH Connection Refused Error A Simple Guide\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/oBb8pWTylm4?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><h2 id=\"h_6c05d1dbe4\">Connection timed out<\/h2><p class=\"no-margin\">This error typically occurs due to one of the following common reasons:<\/p><ul>\n<li>\n<p class=\"no-margin\"><b>Network connectivity issues<\/b>: check that your internet connection is working. Try restarting your router and verifying with your internet service provider that incoming or outgoing connections on port 65002 are allowed<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Firewall blocking SSH<\/b>: A firewall, antivirus, or network security settings could be preventing the SSH connection from being established. Double-check all the related settings to ensure connections on port 65002 are allowed<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Your hosting&rsquo;s IP is temporarily inaccessible due to a <b><a href=\"\/support\/5634639-what-is-a-ddos-attack-and-how-to-prevent-it\" target=\"_blank\" class=\"intercom-content-link\">DDoS attack<\/a><\/b> or a <b><a href=\"https:\/\/statuspage.hostinger.com\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">server maintenance<\/a><\/b><\/p>\n<\/li>\n<\/ul><p class=\"no-margin\">\n<\/p><h2 id=\"h_41c5c9eaab\">Command not found<\/h2><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2021\/10\/fc0c90f6-5cf1-4e66-a35e-2adcb28252bf.jpg\"><\/div><p class=\"no-margin\">For security reasons, elevated permission commands, such as <b>sudo<\/b>, are <b>disabled<\/b> on Web and Cloud hosting plans. In case you require these types of commands, you can consider a <b><a href=\"https:\/\/www.hostinger.com\/vps-hosting\" target=\"_blank\" class=\"intercom-content-link\">VPS<\/a> <\/b>self-managed hosting.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_e73bbba9e2\">Unfinished processes<\/h2><p class=\"no-margin\">If you are experiencing unexpected termination of commands or processes after successfully connecting via SSH, it is important to check your <b><a href=\"\/support\/2436138-how-to-check-order-usage-inside-my-hpanel\" target=\"_blank\" class=\"intercom-content-link\">Order Usage<\/a><\/b>. This is because each action on SSH utilizes the resources of your hosting plan, and if there are insufficient resources available, the process will fail. To resolve this issue, you can either explore alternative methods to achieve your desired outcome or consider <b><a href=\"\/support\/1583459-how-can-i-upgrade-my-hosting-account\" target=\"_blank\" class=\"intercom-content-link\">upgrading your hosting plan<\/a><\/b>.<\/p><p class=\"no-margin\">\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Solving errors in SSH terminal<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[235],"tags":[],"class_list":["post-1025","post","type-post","status-publish","format-standard","hentry","category-ssh-connection-and-ssh-keys"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/5634587-how-to-solve-the-most-common-errors-in-ssh-at-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/5634587-como-solucionar-los-errores-mas-comunes-en-ssh-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/5634587-comment-resoudre-les-erreurs-les-plus-courantes-en-ssh-chez-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/5634587-cara-mengatasi-error-yang-sering-terjadi-di-ssh-di-hostinger\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/5634587-como-solucionar-os-erros-mais-comuns-de-ssh-no-hostinger\/","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/5634587------ssh\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1025","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1025"}],"version-history":[{"count":2,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1025\/revisions"}],"predecessor-version":[{"id":6298,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1025\/revisions\/6298"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1025"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1025"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1025"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}