{"id":560,"date":"2024-02-01T07:35:41","date_gmt":"2024-02-01T07:35:41","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2024\/02\/01\/8894153-troubleshooting-ssh-connection-timeout-issues-on-vps-at-hostinger\/"},"modified":"2026-03-16T12:12:00","modified_gmt":"2026-03-16T12:12:00","slug":"8894153-troubleshooting-ssh-connection-timeout-issues-on-vps-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/8894153-troubleshooting-ssh-connection-timeout-issues-on-vps-at-hostinger\/","title":{"rendered":"Troubleshooting SSH Connection Timeout Issues on VPS at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">SSH (Secure Shell) is one of the basic tools for managing your VPS, allowing for secure remote access to the server resources. However, you may occasionally encounter that your SSH connection timeout issues. This can happen due to various reasons, ranging from client-side or network issues to server-side configurations. <\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">To find out the cause, it is recommended to perform checks on the following:<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_a9a6a6009c\">Your Internet Connection<\/h2><p class=\"no-margin\"><b>Unstable or slow connections<\/b> from user side are a common cause of SSH timeouts. Try accessing other websites or services to confirm your internet stability. If you identify issues with your local network, troubleshoot these first before attempting to reconnect via SSH.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_f7bfc8dc8d\">Server Status and Network Issues<\/h2><p class=\"no-margin\">Ensure that your VPS is up and running on the <b><a href=\"https:\/\/hpanel.hostinger.com\/servers\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">VPS<\/a><\/b> &rarr; <b>Overview <\/b>section of your hPanel:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2024\/02\/b2b5e29a-d66a-470b-8e5f-d58ec18f4b60.jpg\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">If the server is operational, the issue might be <b>network-related<\/b>. <b><a href=\"https:\/\/www.hostinger.com\/tutorials\/ping-an-ip\" target=\"_blank\" class=\"intercom-content-link\">Perform a ping test<\/a><\/b> to your server&rsquo;s <b><a href=\"\/support\/5139756-how-to-find-your-vps-ip-address\" target=\"_blank\" class=\"intercom-content-link\">IP address<\/a><\/b> to check for packet loss or high latency.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_57c500c68f\">SSH Configuration Settings<\/h2><p class=\"no-margin\">If the network is stable, the next step is to review the SSH configuration settings on your server. This involves checking your server&rsquo;s<b> SSH daemon settings<\/b> located in the following path: <\/p><pre><code>\/etc\/ssh\/sshd_config <\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Pay attention to the following configurations:<\/p><ul>\n<li>\n<p class=\"no-margin\"><b>ClientAliveInterval<\/b> &ndash; the <b>interval in seconds<\/b> between the server&rsquo;s check for client activity<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>ClientAliveCountMax<\/b> &ndash; the <b>maximum number of client<\/b> checks that can occur before the server terminates the connection<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>TCPKeepAlive <\/b>&ndash; this feature enables the <b>periodic transmission of KeepAlive messages <\/b>to detect if a connection is still active<\/p>\n<\/li>\n<\/ul><p class=\"no-margin\">These determine how long the server waits before disconnecting an idle session and might need adjustment to prevent premature timeouts.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_07c2866ec5\">Firewall Settings<\/h2><p class=\"no-margin\">Firewalls, both on your local machine and on the server, can interfere with SSH connections. Ensure that your <b>firewall settings allow for SSH access<\/b>. On the server side, check that the <b>SSH port is open<\/b> and not restricted by the server&rsquo;s firewall. The default port for SSH is <b>22<\/b>.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Troubleshooting SSH connection timeouts requires a methodical approach, starting from basic checks to more in-depth. This way, you can diagnose and resolve most SSH connection issues, ensuring reliable and secure access to your VPS. It&rsquo;s important to note that <b>consistent monitoring and maintenance of your network and server settings<\/b> are key to preventing future SSH timeouts.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Understanding the reasons why a VPS may not respond via SSH and what to do<\/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":[199],"tags":[],"class_list":["post-560","post","type-post","status-publish","format-standard","hentry","category-vps-management"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/8894153-troubleshooting-ssh-connection-timeout-issues-on-vps-at-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/8894153-solucion-de-problemas-de-tiempo-de-espera-de-conexion-ssh-en-vps-en-hostinger\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/8894153-como-resolver-problemas-de-tempo-limite-de-conexao-ssh-no-vps-na-hostinger\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/560","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=560"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/560\/revisions"}],"predecessor-version":[{"id":2606,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/560\/revisions\/2606"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}