{"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-10-29T14:42:11","modified_gmt":"2026-10-29T14:42:11","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, your SSH connection to a Hostinger VPS can occasionally time out. This can happen due to various reasons, ranging from client-side or network issues to server-side configurations. To troubleshoot SSH connection timeout issues on a Hostinger VPS, check your internet connection, confirm the VPS is running and reachable with a ping test, review the SSH daemon settings in <code>\/etc\/ssh\/sshd_config<\/code>, and make sure your firewalls allow port 22.<\/p><p class=\"no-margin\">To find out the cause, it is recommended to perform checks on the following:<\/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><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 data-click-id=\"hgr-post-content-link-vps\" class=\"intercom-content-link\" href=\"https:\/\/hpanel.hostinger.com\/servers\" target=\"_blank\" rel=\"noopener\">VPS<\/a><\/b> &rarr; <b>Overview <\/b>section of your Hostinger dashboard:<\/p><div class=\"intercom-container\"><img decoding=\"async\" class=\"alignnone size-full wp-image-20172\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-09_15-36.png\/public\" alt=\"\" width=\"1118\" height=\"434\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-09_15-36.png\/w=1118,fit=scale-down 1118w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-09_15-36.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-09_15-36.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/10\/2026-10-09_15-36.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1118px) 100vw, 1118px\" \/><\/div><p class=\"no-margin\">If the server is operational, the issue might be <b>network-related<\/b>. <b><a data-click-id=\"hgr-post-content-link-perform-a-ping-test\" class=\"intercom-content-link\" href=\"\/tutorials\/linux-ping-command-with-examples\/\" target=\"_blank\" rel=\"noopener\">Perform a ping test<\/a><\/b> to your server&rsquo;s <b><a data-click-id=\"hgr-post-content-link-ip-address\" class=\"intercom-content-link\" href=\"\/support\/5139756-how-to-find-your-vps-ip-address-at-hostinger\/\" target=\"_blank\" rel=\"noopener\">IP address<\/a><\/b> to check for packet loss or high latency.<\/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\">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><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>. Hostinger&rsquo;s firewall can also block your current IP address after repeated failed login attempts, which makes SSH connections time out. Follow <a data-click-id=\"hgr-post-content-link-how-to-check-if-your-ip-is-blocked-by-hostinger-firewall\" href=\"\/support\/blocked-ip-address-hostinger-firewall\/\">How to check if your IP is blocked by Hostinger firewall<\/a> to confirm your IP and request an unblock.<\/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><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">See <a data-click-id=\"hgr-post-content-link-how-to-troubleshoot-ssh-connection-issues-on-vps\" href=\"\/support\/9969102-how-to-troubleshoot-ssh-connection-issues-on-vps\/\">How to troubleshoot SSH connection issues on VPS<\/a> for other details about SSH connection issues, including credentials and the web console.<\/div><p>Once you correct the cause, your SSH connection to your Hostinger VPS no longer times out.<\/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":{"_content_updated_date":"","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-BR","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":7,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/560\/revisions"}],"predecessor-version":[{"id":22552,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/560\/revisions\/22552"}],"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}]}}