Remote machine suddenly not reachable with ssh [closed]











up vote
1
down vote

favorite












I set up a remote Ubuntu machine a few weeks ago and I was able to ssh into it without any problem. This until a few hours ago, when the machine stopped responding, and I tried to start a new session.
Now I just get:



ssh: connect to host IP port XYZ: Operation timed out.


Unfortunately I am not able to have physical access to the machine so I'm trying to figure out what the problem could be. I tried:



ping IP


but I keep getting Request timeout for icmp_seq 0. My family tried to re-boot both the machine and the router, but it didn't help. Any suggestion?



P.S.: I'm new to setting up remote machines, so I'm sorry if a didn't include relevant information to answer my question.





Apparently one problem was the IP of the router that changed during my ssh connection. I still have problems but are probably related to the machine, and not to the network.










share|improve this question















closed as too broad by JakeGould, DavidPostill Nov 24 at 21:14


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.



















    up vote
    1
    down vote

    favorite












    I set up a remote Ubuntu machine a few weeks ago and I was able to ssh into it without any problem. This until a few hours ago, when the machine stopped responding, and I tried to start a new session.
    Now I just get:



    ssh: connect to host IP port XYZ: Operation timed out.


    Unfortunately I am not able to have physical access to the machine so I'm trying to figure out what the problem could be. I tried:



    ping IP


    but I keep getting Request timeout for icmp_seq 0. My family tried to re-boot both the machine and the router, but it didn't help. Any suggestion?



    P.S.: I'm new to setting up remote machines, so I'm sorry if a didn't include relevant information to answer my question.





    Apparently one problem was the IP of the router that changed during my ssh connection. I still have problems but are probably related to the machine, and not to the network.










    share|improve this question















    closed as too broad by JakeGould, DavidPostill Nov 24 at 21:14


    Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I set up a remote Ubuntu machine a few weeks ago and I was able to ssh into it without any problem. This until a few hours ago, when the machine stopped responding, and I tried to start a new session.
      Now I just get:



      ssh: connect to host IP port XYZ: Operation timed out.


      Unfortunately I am not able to have physical access to the machine so I'm trying to figure out what the problem could be. I tried:



      ping IP


      but I keep getting Request timeout for icmp_seq 0. My family tried to re-boot both the machine and the router, but it didn't help. Any suggestion?



      P.S.: I'm new to setting up remote machines, so I'm sorry if a didn't include relevant information to answer my question.





      Apparently one problem was the IP of the router that changed during my ssh connection. I still have problems but are probably related to the machine, and not to the network.










      share|improve this question















      I set up a remote Ubuntu machine a few weeks ago and I was able to ssh into it without any problem. This until a few hours ago, when the machine stopped responding, and I tried to start a new session.
      Now I just get:



      ssh: connect to host IP port XYZ: Operation timed out.


      Unfortunately I am not able to have physical access to the machine so I'm trying to figure out what the problem could be. I tried:



      ping IP


      but I keep getting Request timeout for icmp_seq 0. My family tried to re-boot both the machine and the router, but it didn't help. Any suggestion?



      P.S.: I'm new to setting up remote machines, so I'm sorry if a didn't include relevant information to answer my question.





      Apparently one problem was the IP of the router that changed during my ssh connection. I still have problems but are probably related to the machine, and not to the network.







      ubuntu ssh ping remote






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 25 at 10:06

























      asked Nov 24 at 12:59









      sensitive_scientist

      1145




      1145




      closed as too broad by JakeGould, DavidPostill Nov 24 at 21:14


      Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






      closed as too broad by JakeGould, DavidPostill Nov 24 at 21:14


      Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
























          3 Answers
          3






          active

          oldest

          votes

















          up vote
          8
          down vote



          accepted










          There could be many reasons it stopped working. Without physical access it is impossible to know.



          However, based on your question this is a machine you set up at your families home. The first thing that comes to mind is the router's IP address changed. This is common for residential router's that use DHCP leases. Or perhaps the router got reset and the port forwarding for SSH is gone. It could be the SSH server isn't starting. The list goes on and on.






          share|improve this answer





















          • "It could be the SSH server isn't starting." - You can scratch that one. If that was the problem, the target computer would respond with connection refused, rather than no answer at all.
            – marcelm
            Nov 24 at 17:59


















          up vote
          3
          down vote













          Ultimately, relying on ssh to keep working on a network that you don't manage directly is a tough proposition.



          In order of likelihood:





          The router IP is assigned dynamically (through DHCP, for example), and its lease expired, so the router acquired another IP and the one you have has been reassigned to another ISP customer.



          Diagnostic: ask someone onsite to visit whatismyip.com or a similar service and read the IP to you. If you managed to successfully ping the IP in the past, your failure to ping now might indicate the old ip was unassigned and not reassigned, but it's not conclusive.



          Fix: connect to the new IP. The long-term fix is to use a dynamic DNS service in the future (noip is popular, for example)





          The router is down / malfunctioning, or the connection to the ISP is broken



          Diagnostic: ask someone onsite to browse the internet. This would also cause ping failure.



          Fix: either help troubleshoot, or dial the ISP





          The router firmware was upgraded or reset, and your port forwarding settings are gone.



          Diagnostic: if possible, ask someone onsite to visit the browser page and double-check the settings. Ping should still work.



          Fix: Re-add settings. To prevent it from happening again, you can setup a automatic SSH reverse connection (-R). You can combine that with autossh for robustness, or even setup a VPN client such as openvpn, if you're feeling ambitious.





          The ISP decided to firewall port 22. This is unusual, but not unheard of.



          Diagnostic: setup SSH on a new port, both on the computer and the port forwarding on the router. Ping should still work.



          Fix: Just use another port or dial the ISP






          share|improve this answer






























            up vote
            1
            down vote













            As the question why SSH might no longer work has already been answered (public IP changed, port forwarding rule reset etc.)
            I wanted to respond to the fact the ping timed out:


            Ping doesn't use any ports because it doesn't use TCP / UDP but rather ICMP. This means if you pinged the public IP you pinged the router connecting the server to the internet, which most likely didn't answer ping for security purposes (most residential routers do this).


            If you pinged the private IP address of the machine (192.168.x.x or something like that) the router you use to connect to the internet won't forward the ping because 192.168.x.x is a private IP address range, meaning requests to such IPs wont be forwarded through the internet.






            share|improve this answer






























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              8
              down vote



              accepted










              There could be many reasons it stopped working. Without physical access it is impossible to know.



              However, based on your question this is a machine you set up at your families home. The first thing that comes to mind is the router's IP address changed. This is common for residential router's that use DHCP leases. Or perhaps the router got reset and the port forwarding for SSH is gone. It could be the SSH server isn't starting. The list goes on and on.






              share|improve this answer





















              • "It could be the SSH server isn't starting." - You can scratch that one. If that was the problem, the target computer would respond with connection refused, rather than no answer at all.
                – marcelm
                Nov 24 at 17:59















              up vote
              8
              down vote



              accepted










              There could be many reasons it stopped working. Without physical access it is impossible to know.



              However, based on your question this is a machine you set up at your families home. The first thing that comes to mind is the router's IP address changed. This is common for residential router's that use DHCP leases. Or perhaps the router got reset and the port forwarding for SSH is gone. It could be the SSH server isn't starting. The list goes on and on.






              share|improve this answer





















              • "It could be the SSH server isn't starting." - You can scratch that one. If that was the problem, the target computer would respond with connection refused, rather than no answer at all.
                – marcelm
                Nov 24 at 17:59













              up vote
              8
              down vote



              accepted







              up vote
              8
              down vote



              accepted






              There could be many reasons it stopped working. Without physical access it is impossible to know.



              However, based on your question this is a machine you set up at your families home. The first thing that comes to mind is the router's IP address changed. This is common for residential router's that use DHCP leases. Or perhaps the router got reset and the port forwarding for SSH is gone. It could be the SSH server isn't starting. The list goes on and on.






              share|improve this answer












              There could be many reasons it stopped working. Without physical access it is impossible to know.



              However, based on your question this is a machine you set up at your families home. The first thing that comes to mind is the router's IP address changed. This is common for residential router's that use DHCP leases. Or perhaps the router got reset and the port forwarding for SSH is gone. It could be the SSH server isn't starting. The list goes on and on.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Nov 24 at 13:23









              Keltari

              49.9k17114166




              49.9k17114166












              • "It could be the SSH server isn't starting." - You can scratch that one. If that was the problem, the target computer would respond with connection refused, rather than no answer at all.
                – marcelm
                Nov 24 at 17:59


















              • "It could be the SSH server isn't starting." - You can scratch that one. If that was the problem, the target computer would respond with connection refused, rather than no answer at all.
                – marcelm
                Nov 24 at 17:59
















              "It could be the SSH server isn't starting." - You can scratch that one. If that was the problem, the target computer would respond with connection refused, rather than no answer at all.
              – marcelm
              Nov 24 at 17:59




              "It could be the SSH server isn't starting." - You can scratch that one. If that was the problem, the target computer would respond with connection refused, rather than no answer at all.
              – marcelm
              Nov 24 at 17:59












              up vote
              3
              down vote













              Ultimately, relying on ssh to keep working on a network that you don't manage directly is a tough proposition.



              In order of likelihood:





              The router IP is assigned dynamically (through DHCP, for example), and its lease expired, so the router acquired another IP and the one you have has been reassigned to another ISP customer.



              Diagnostic: ask someone onsite to visit whatismyip.com or a similar service and read the IP to you. If you managed to successfully ping the IP in the past, your failure to ping now might indicate the old ip was unassigned and not reassigned, but it's not conclusive.



              Fix: connect to the new IP. The long-term fix is to use a dynamic DNS service in the future (noip is popular, for example)





              The router is down / malfunctioning, or the connection to the ISP is broken



              Diagnostic: ask someone onsite to browse the internet. This would also cause ping failure.



              Fix: either help troubleshoot, or dial the ISP





              The router firmware was upgraded or reset, and your port forwarding settings are gone.



              Diagnostic: if possible, ask someone onsite to visit the browser page and double-check the settings. Ping should still work.



              Fix: Re-add settings. To prevent it from happening again, you can setup a automatic SSH reverse connection (-R). You can combine that with autossh for robustness, or even setup a VPN client such as openvpn, if you're feeling ambitious.





              The ISP decided to firewall port 22. This is unusual, but not unheard of.



              Diagnostic: setup SSH on a new port, both on the computer and the port forwarding on the router. Ping should still work.



              Fix: Just use another port or dial the ISP






              share|improve this answer



























                up vote
                3
                down vote













                Ultimately, relying on ssh to keep working on a network that you don't manage directly is a tough proposition.



                In order of likelihood:





                The router IP is assigned dynamically (through DHCP, for example), and its lease expired, so the router acquired another IP and the one you have has been reassigned to another ISP customer.



                Diagnostic: ask someone onsite to visit whatismyip.com or a similar service and read the IP to you. If you managed to successfully ping the IP in the past, your failure to ping now might indicate the old ip was unassigned and not reassigned, but it's not conclusive.



                Fix: connect to the new IP. The long-term fix is to use a dynamic DNS service in the future (noip is popular, for example)





                The router is down / malfunctioning, or the connection to the ISP is broken



                Diagnostic: ask someone onsite to browse the internet. This would also cause ping failure.



                Fix: either help troubleshoot, or dial the ISP





                The router firmware was upgraded or reset, and your port forwarding settings are gone.



                Diagnostic: if possible, ask someone onsite to visit the browser page and double-check the settings. Ping should still work.



                Fix: Re-add settings. To prevent it from happening again, you can setup a automatic SSH reverse connection (-R). You can combine that with autossh for robustness, or even setup a VPN client such as openvpn, if you're feeling ambitious.





                The ISP decided to firewall port 22. This is unusual, but not unheard of.



                Diagnostic: setup SSH on a new port, both on the computer and the port forwarding on the router. Ping should still work.



                Fix: Just use another port or dial the ISP






                share|improve this answer

























                  up vote
                  3
                  down vote










                  up vote
                  3
                  down vote









                  Ultimately, relying on ssh to keep working on a network that you don't manage directly is a tough proposition.



                  In order of likelihood:





                  The router IP is assigned dynamically (through DHCP, for example), and its lease expired, so the router acquired another IP and the one you have has been reassigned to another ISP customer.



                  Diagnostic: ask someone onsite to visit whatismyip.com or a similar service and read the IP to you. If you managed to successfully ping the IP in the past, your failure to ping now might indicate the old ip was unassigned and not reassigned, but it's not conclusive.



                  Fix: connect to the new IP. The long-term fix is to use a dynamic DNS service in the future (noip is popular, for example)





                  The router is down / malfunctioning, or the connection to the ISP is broken



                  Diagnostic: ask someone onsite to browse the internet. This would also cause ping failure.



                  Fix: either help troubleshoot, or dial the ISP





                  The router firmware was upgraded or reset, and your port forwarding settings are gone.



                  Diagnostic: if possible, ask someone onsite to visit the browser page and double-check the settings. Ping should still work.



                  Fix: Re-add settings. To prevent it from happening again, you can setup a automatic SSH reverse connection (-R). You can combine that with autossh for robustness, or even setup a VPN client such as openvpn, if you're feeling ambitious.





                  The ISP decided to firewall port 22. This is unusual, but not unheard of.



                  Diagnostic: setup SSH on a new port, both on the computer and the port forwarding on the router. Ping should still work.



                  Fix: Just use another port or dial the ISP






                  share|improve this answer














                  Ultimately, relying on ssh to keep working on a network that you don't manage directly is a tough proposition.



                  In order of likelihood:





                  The router IP is assigned dynamically (through DHCP, for example), and its lease expired, so the router acquired another IP and the one you have has been reassigned to another ISP customer.



                  Diagnostic: ask someone onsite to visit whatismyip.com or a similar service and read the IP to you. If you managed to successfully ping the IP in the past, your failure to ping now might indicate the old ip was unassigned and not reassigned, but it's not conclusive.



                  Fix: connect to the new IP. The long-term fix is to use a dynamic DNS service in the future (noip is popular, for example)





                  The router is down / malfunctioning, or the connection to the ISP is broken



                  Diagnostic: ask someone onsite to browse the internet. This would also cause ping failure.



                  Fix: either help troubleshoot, or dial the ISP





                  The router firmware was upgraded or reset, and your port forwarding settings are gone.



                  Diagnostic: if possible, ask someone onsite to visit the browser page and double-check the settings. Ping should still work.



                  Fix: Re-add settings. To prevent it from happening again, you can setup a automatic SSH reverse connection (-R). You can combine that with autossh for robustness, or even setup a VPN client such as openvpn, if you're feeling ambitious.





                  The ISP decided to firewall port 22. This is unusual, but not unheard of.



                  Diagnostic: setup SSH on a new port, both on the computer and the port forwarding on the router. Ping should still work.



                  Fix: Just use another port or dial the ISP







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Nov 25 at 11:43

























                  answered Nov 24 at 18:11









                  goncalopp

                  4751512




                  4751512






















                      up vote
                      1
                      down vote













                      As the question why SSH might no longer work has already been answered (public IP changed, port forwarding rule reset etc.)
                      I wanted to respond to the fact the ping timed out:


                      Ping doesn't use any ports because it doesn't use TCP / UDP but rather ICMP. This means if you pinged the public IP you pinged the router connecting the server to the internet, which most likely didn't answer ping for security purposes (most residential routers do this).


                      If you pinged the private IP address of the machine (192.168.x.x or something like that) the router you use to connect to the internet won't forward the ping because 192.168.x.x is a private IP address range, meaning requests to such IPs wont be forwarded through the internet.






                      share|improve this answer



























                        up vote
                        1
                        down vote













                        As the question why SSH might no longer work has already been answered (public IP changed, port forwarding rule reset etc.)
                        I wanted to respond to the fact the ping timed out:


                        Ping doesn't use any ports because it doesn't use TCP / UDP but rather ICMP. This means if you pinged the public IP you pinged the router connecting the server to the internet, which most likely didn't answer ping for security purposes (most residential routers do this).


                        If you pinged the private IP address of the machine (192.168.x.x or something like that) the router you use to connect to the internet won't forward the ping because 192.168.x.x is a private IP address range, meaning requests to such IPs wont be forwarded through the internet.






                        share|improve this answer

























                          up vote
                          1
                          down vote










                          up vote
                          1
                          down vote









                          As the question why SSH might no longer work has already been answered (public IP changed, port forwarding rule reset etc.)
                          I wanted to respond to the fact the ping timed out:


                          Ping doesn't use any ports because it doesn't use TCP / UDP but rather ICMP. This means if you pinged the public IP you pinged the router connecting the server to the internet, which most likely didn't answer ping for security purposes (most residential routers do this).


                          If you pinged the private IP address of the machine (192.168.x.x or something like that) the router you use to connect to the internet won't forward the ping because 192.168.x.x is a private IP address range, meaning requests to such IPs wont be forwarded through the internet.






                          share|improve this answer














                          As the question why SSH might no longer work has already been answered (public IP changed, port forwarding rule reset etc.)
                          I wanted to respond to the fact the ping timed out:


                          Ping doesn't use any ports because it doesn't use TCP / UDP but rather ICMP. This means if you pinged the public IP you pinged the router connecting the server to the internet, which most likely didn't answer ping for security purposes (most residential routers do this).


                          If you pinged the private IP address of the machine (192.168.x.x or something like that) the router you use to connect to the internet won't forward the ping because 192.168.x.x is a private IP address range, meaning requests to such IPs wont be forwarded through the internet.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Nov 24 at 17:22

























                          answered Nov 24 at 14:19









                          User025

                          24810




                          24810















                              Popular posts from this blog

                              How to change which sound is reproduced for terminal bell?

                              Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                              Can I use Tabulator js library in my java Spring + Thymeleaf project?