{"id":2075,"date":"2021-06-10T15:45:25","date_gmt":"2021-06-10T12:45:25","guid":{"rendered":"https:\/\/www.scalahosting.com\/kb\/?p=2075"},"modified":"2025-11-27T09:53:02","modified_gmt":"2025-11-27T07:53:02","slug":"connection-timed-out-error-when-connecting-via-ssh","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/kb\/connection-timed-out-error-when-connecting-via-ssh\/","title":{"rendered":"SSH Connection Timed Out: How to Fix"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">When attempting<\/span><b> to <\/b><a href=\"https:\/\/www.scalahosting.com\/kb\/access-server-ssh\/\"><b>connect to a server via SSH<\/b><\/a><span style=\"font-weight: 400;\">, you are essentially directing your device towards it. If the two ends fail to connect, you may encounter a<\/span><b> \u201cconnection timed out\u201d message<\/b><span style=\"font-weight: 400;\">. This error is typically caused by a failure to connect rather than problems with credentials\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">There are <\/span><b>several possibilities that may lead to this<\/b><span style=\"font-weight: 400;\">. For example:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Incorrect IP address or <\/b><a href=\"https:\/\/www.scalahosting.com\/kb\/add-my-own-hostnames\/\"><b>hostname<\/b> <\/a><span style=\"font-weight: 400;\">\u00a0&#8211; The error may be due to a simple typo. Before you check anything else, make sure you&#8217;re trying to connect to the correct server<\/span><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Incorrect SSH port number<\/b><span style=\"font-weight: 400;\"> &#8211; By default, servers listen for <\/span><b>SSH connections on<\/b> <b>port 22. <\/b><span style=\"font-weight: 400;\">In some cases, this port may be changed by administrators due to security reasons. Ensure that you are attempting to connect to the right port number for your server.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Blocks due to firewall intervention<\/b><span style=\"font-weight: 400;\"> &#8211; Some servers may be protected by firewalls at various points. If you are using a firewall, ensure that it isn\u2019t blocking access to your SSH port. If it is, add an exception to your firewall<\/span><b> to allow access to your SSH port number.<\/b><\/li>\n<\/ul>\n<p><b>Stopped SSH service <\/b><span style=\"font-weight: 400;\">&#8211; In some instances, the SSH service may be stopped. Ask your host or the server&#8217;s administrator to check and restart the SSH service if necessary.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When attempting to connect to a server via SSH, you are essentially directing your device towards it. If the two ends fail to connect, you may encounter a \u201cconnection timed out\u201d message. This error is typically caused by a failure to connect rather than problems with credentials\u00a0 There are several possibilities that may lead to [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"none","_seopress_titles_title":"SSH Connection Timed Out: How to Fix | ScalaHosting KB","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_analysis_target_kw":"","footnotes":""},"categories":[34],"tags":[],"class_list":["post-2075","post","type-post","status-publish","format-standard","hentry","category-web-hosting"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/2075","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/comments?post=2075"}],"version-history":[{"count":3,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/2075\/revisions"}],"predecessor-version":[{"id":5812,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/2075\/revisions\/5812"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/media?parent=2075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/categories?post=2075"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/tags?post=2075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}