ssh: connect to host stopped working and port 22: connection timed out











up vote
1
down vote

favorite












I can not access to remote computer using ssh username@host anymore, it worked before then it stopped and I always get:



ssh: connect to host  port 22: Connection timed out


I checked firewall rules, nothing interrupting. I re-installed ssh server and made sure it is working but still the same problem.
I ping to the IP address and it is responding properly.





I checked also ssh config and it is listening to port 22



Any help?










share|improve this question
























  • did you check in /etc/ssh/sshd_config of the host computer which port is listened ?
    – Dadep
    May 11 at 9:30










  • yes and it is listening to Port 22
    – user828598
    May 11 at 9:44










  • can you try to connect from other computer ? how are connected your network ? is there router ?
    – Dadep
    May 11 at 10:12










  • I will try to connect from another computer. But I do not understand what do you mean by is there router? I am trying to access my work station at the institute where I work from my laptop it worked before properly but then the connection stopped and timed out and I tried from another Internet connection and it is the same problem
    – user828598
    May 11 at 10:22










  • did you try from other computer on the same network ? maybe the problem is in the different steps of your local network. I mean if your laptop is not physically directly link to your server, you should check everything place in the path between your laptop and your hostserver.
    – Dadep
    May 11 at 10:46















up vote
1
down vote

favorite












I can not access to remote computer using ssh username@host anymore, it worked before then it stopped and I always get:



ssh: connect to host  port 22: Connection timed out


I checked firewall rules, nothing interrupting. I re-installed ssh server and made sure it is working but still the same problem.
I ping to the IP address and it is responding properly.





I checked also ssh config and it is listening to port 22



Any help?










share|improve this question
























  • did you check in /etc/ssh/sshd_config of the host computer which port is listened ?
    – Dadep
    May 11 at 9:30










  • yes and it is listening to Port 22
    – user828598
    May 11 at 9:44










  • can you try to connect from other computer ? how are connected your network ? is there router ?
    – Dadep
    May 11 at 10:12










  • I will try to connect from another computer. But I do not understand what do you mean by is there router? I am trying to access my work station at the institute where I work from my laptop it worked before properly but then the connection stopped and timed out and I tried from another Internet connection and it is the same problem
    – user828598
    May 11 at 10:22










  • did you try from other computer on the same network ? maybe the problem is in the different steps of your local network. I mean if your laptop is not physically directly link to your server, you should check everything place in the path between your laptop and your hostserver.
    – Dadep
    May 11 at 10:46













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I can not access to remote computer using ssh username@host anymore, it worked before then it stopped and I always get:



ssh: connect to host  port 22: Connection timed out


I checked firewall rules, nothing interrupting. I re-installed ssh server and made sure it is working but still the same problem.
I ping to the IP address and it is responding properly.





I checked also ssh config and it is listening to port 22



Any help?










share|improve this question















I can not access to remote computer using ssh username@host anymore, it worked before then it stopped and I always get:



ssh: connect to host  port 22: Connection timed out


I checked firewall rules, nothing interrupting. I re-installed ssh server and made sure it is working but still the same problem.
I ping to the IP address and it is responding properly.





I checked also ssh config and it is listening to port 22



Any help?







networking server ssh connection






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 11 at 9:54

























asked May 11 at 9:23









user828598

615




615












  • did you check in /etc/ssh/sshd_config of the host computer which port is listened ?
    – Dadep
    May 11 at 9:30










  • yes and it is listening to Port 22
    – user828598
    May 11 at 9:44










  • can you try to connect from other computer ? how are connected your network ? is there router ?
    – Dadep
    May 11 at 10:12










  • I will try to connect from another computer. But I do not understand what do you mean by is there router? I am trying to access my work station at the institute where I work from my laptop it worked before properly but then the connection stopped and timed out and I tried from another Internet connection and it is the same problem
    – user828598
    May 11 at 10:22










  • did you try from other computer on the same network ? maybe the problem is in the different steps of your local network. I mean if your laptop is not physically directly link to your server, you should check everything place in the path between your laptop and your hostserver.
    – Dadep
    May 11 at 10:46


















  • did you check in /etc/ssh/sshd_config of the host computer which port is listened ?
    – Dadep
    May 11 at 9:30










  • yes and it is listening to Port 22
    – user828598
    May 11 at 9:44










  • can you try to connect from other computer ? how are connected your network ? is there router ?
    – Dadep
    May 11 at 10:12










  • I will try to connect from another computer. But I do not understand what do you mean by is there router? I am trying to access my work station at the institute where I work from my laptop it worked before properly but then the connection stopped and timed out and I tried from another Internet connection and it is the same problem
    – user828598
    May 11 at 10:22










  • did you try from other computer on the same network ? maybe the problem is in the different steps of your local network. I mean if your laptop is not physically directly link to your server, you should check everything place in the path between your laptop and your hostserver.
    – Dadep
    May 11 at 10:46
















did you check in /etc/ssh/sshd_config of the host computer which port is listened ?
– Dadep
May 11 at 9:30




did you check in /etc/ssh/sshd_config of the host computer which port is listened ?
– Dadep
May 11 at 9:30












yes and it is listening to Port 22
– user828598
May 11 at 9:44




yes and it is listening to Port 22
– user828598
May 11 at 9:44












can you try to connect from other computer ? how are connected your network ? is there router ?
– Dadep
May 11 at 10:12




can you try to connect from other computer ? how are connected your network ? is there router ?
– Dadep
May 11 at 10:12












I will try to connect from another computer. But I do not understand what do you mean by is there router? I am trying to access my work station at the institute where I work from my laptop it worked before properly but then the connection stopped and timed out and I tried from another Internet connection and it is the same problem
– user828598
May 11 at 10:22




I will try to connect from another computer. But I do not understand what do you mean by is there router? I am trying to access my work station at the institute where I work from my laptop it worked before properly but then the connection stopped and timed out and I tried from another Internet connection and it is the same problem
– user828598
May 11 at 10:22












did you try from other computer on the same network ? maybe the problem is in the different steps of your local network. I mean if your laptop is not physically directly link to your server, you should check everything place in the path between your laptop and your hostserver.
– Dadep
May 11 at 10:46




did you try from other computer on the same network ? maybe the problem is in the different steps of your local network. I mean if your laptop is not physically directly link to your server, you should check everything place in the path between your laptop and your hostserver.
– Dadep
May 11 at 10:46










1 Answer
1






active

oldest

votes

















up vote
0
down vote













First of all check out if the SSH daemon is running properly. you may need to check the journald logs for further details.



You can alternatively run netstat command and see if SSH is listening on 22, and test if ‘telnet ip -port 22’ is working from the firewall to the machine ?



Check ssd_config configuration file if any restrictions in there.



Please note that any problem will be logged in the journald, the sshd.log or your firewall log.






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1034838%2fssh-connect-to-host-stopped-working-and-port-22-connection-timed-out%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    First of all check out if the SSH daemon is running properly. you may need to check the journald logs for further details.



    You can alternatively run netstat command and see if SSH is listening on 22, and test if ‘telnet ip -port 22’ is working from the firewall to the machine ?



    Check ssd_config configuration file if any restrictions in there.



    Please note that any problem will be logged in the journald, the sshd.log or your firewall log.






    share|improve this answer

























      up vote
      0
      down vote













      First of all check out if the SSH daemon is running properly. you may need to check the journald logs for further details.



      You can alternatively run netstat command and see if SSH is listening on 22, and test if ‘telnet ip -port 22’ is working from the firewall to the machine ?



      Check ssd_config configuration file if any restrictions in there.



      Please note that any problem will be logged in the journald, the sshd.log or your firewall log.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        First of all check out if the SSH daemon is running properly. you may need to check the journald logs for further details.



        You can alternatively run netstat command and see if SSH is listening on 22, and test if ‘telnet ip -port 22’ is working from the firewall to the machine ?



        Check ssd_config configuration file if any restrictions in there.



        Please note that any problem will be logged in the journald, the sshd.log or your firewall log.






        share|improve this answer












        First of all check out if the SSH daemon is running properly. you may need to check the journald logs for further details.



        You can alternatively run netstat command and see if SSH is listening on 22, and test if ‘telnet ip -port 22’ is working from the firewall to the machine ?



        Check ssd_config configuration file if any restrictions in there.



        Please note that any problem will be logged in the journald, the sshd.log or your firewall log.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 11 at 16:49









        Mrghith

        113




        113






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1034838%2fssh-connect-to-host-stopped-working-and-port-22-connection-timed-out%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How did Captain America manage to do this?

            迪纳利

            南乌拉尔铁路局