Can't SSH into Ubuntu server from any machine











up vote
1
down vote

favorite












I have an Ubuntu server running which was working fine till now. I can't SSH into the server and get the following error:



Connecting to user@10.10.0.6...
OpenSSH_7.8p1, OpenSSL 1.0.2k 26 Jan 2017
debug2: resolve_canonicalize: hostname 10.10.0.6 is address
debug2: ssh_connect_direct
debug1: Connecting to 10.10.0.6 [10.10.0.6] port 22.
debug1: Connection established.
debug1: getpeername failed: No such file or directory
debug1: identity file /.ssh/id_rsa type -1
debug1: identity file /.ssh/id_rsa-cert type -1
debug1: identity file /.ssh/id_dsa type -1
debug1: identity file /.ssh/id_dsa-cert type -1
debug1: identity file /.ssh/id_ecdsa type -1
debug1: identity file /.ssh/id_ecdsa-cert type -1
debug1: identity file /.ssh/id_ed25519 type -1
debug1: identity file /.ssh/id_ed25519-cert type -1
debug1: identity file /.ssh/id_xmss type -1
debug1: identity file /.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.8
ssh_exchange_identification: Connection closed by remote host


I also tried logging into another machine on the same network and ssh into Ubuntu server from that machine and it still does not work. Any ideas on what might be going on and how to resolve it?










share|improve this question






















  • I think you need to create your ssh keys on teh servier... I think it's sshkeygen
    – Joshua Besneatte
    Nov 29 at 20:16










  • Thanks, I am away from the server, but I'll try it. It's funny how it stopped working all by itself. I have the exchanged the keys in the past but I never disabled password login.
    – utamav
    Nov 30 at 12:50















up vote
1
down vote

favorite












I have an Ubuntu server running which was working fine till now. I can't SSH into the server and get the following error:



Connecting to user@10.10.0.6...
OpenSSH_7.8p1, OpenSSL 1.0.2k 26 Jan 2017
debug2: resolve_canonicalize: hostname 10.10.0.6 is address
debug2: ssh_connect_direct
debug1: Connecting to 10.10.0.6 [10.10.0.6] port 22.
debug1: Connection established.
debug1: getpeername failed: No such file or directory
debug1: identity file /.ssh/id_rsa type -1
debug1: identity file /.ssh/id_rsa-cert type -1
debug1: identity file /.ssh/id_dsa type -1
debug1: identity file /.ssh/id_dsa-cert type -1
debug1: identity file /.ssh/id_ecdsa type -1
debug1: identity file /.ssh/id_ecdsa-cert type -1
debug1: identity file /.ssh/id_ed25519 type -1
debug1: identity file /.ssh/id_ed25519-cert type -1
debug1: identity file /.ssh/id_xmss type -1
debug1: identity file /.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.8
ssh_exchange_identification: Connection closed by remote host


I also tried logging into another machine on the same network and ssh into Ubuntu server from that machine and it still does not work. Any ideas on what might be going on and how to resolve it?










share|improve this question






















  • I think you need to create your ssh keys on teh servier... I think it's sshkeygen
    – Joshua Besneatte
    Nov 29 at 20:16










  • Thanks, I am away from the server, but I'll try it. It's funny how it stopped working all by itself. I have the exchanged the keys in the past but I never disabled password login.
    – utamav
    Nov 30 at 12:50













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have an Ubuntu server running which was working fine till now. I can't SSH into the server and get the following error:



Connecting to user@10.10.0.6...
OpenSSH_7.8p1, OpenSSL 1.0.2k 26 Jan 2017
debug2: resolve_canonicalize: hostname 10.10.0.6 is address
debug2: ssh_connect_direct
debug1: Connecting to 10.10.0.6 [10.10.0.6] port 22.
debug1: Connection established.
debug1: getpeername failed: No such file or directory
debug1: identity file /.ssh/id_rsa type -1
debug1: identity file /.ssh/id_rsa-cert type -1
debug1: identity file /.ssh/id_dsa type -1
debug1: identity file /.ssh/id_dsa-cert type -1
debug1: identity file /.ssh/id_ecdsa type -1
debug1: identity file /.ssh/id_ecdsa-cert type -1
debug1: identity file /.ssh/id_ed25519 type -1
debug1: identity file /.ssh/id_ed25519-cert type -1
debug1: identity file /.ssh/id_xmss type -1
debug1: identity file /.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.8
ssh_exchange_identification: Connection closed by remote host


I also tried logging into another machine on the same network and ssh into Ubuntu server from that machine and it still does not work. Any ideas on what might be going on and how to resolve it?










share|improve this question













I have an Ubuntu server running which was working fine till now. I can't SSH into the server and get the following error:



Connecting to user@10.10.0.6...
OpenSSH_7.8p1, OpenSSL 1.0.2k 26 Jan 2017
debug2: resolve_canonicalize: hostname 10.10.0.6 is address
debug2: ssh_connect_direct
debug1: Connecting to 10.10.0.6 [10.10.0.6] port 22.
debug1: Connection established.
debug1: getpeername failed: No such file or directory
debug1: identity file /.ssh/id_rsa type -1
debug1: identity file /.ssh/id_rsa-cert type -1
debug1: identity file /.ssh/id_dsa type -1
debug1: identity file /.ssh/id_dsa-cert type -1
debug1: identity file /.ssh/id_ecdsa type -1
debug1: identity file /.ssh/id_ecdsa-cert type -1
debug1: identity file /.ssh/id_ed25519 type -1
debug1: identity file /.ssh/id_ed25519-cert type -1
debug1: identity file /.ssh/id_xmss type -1
debug1: identity file /.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.8
ssh_exchange_identification: Connection closed by remote host


I also tried logging into another machine on the same network and ssh into Ubuntu server from that machine and it still does not work. Any ideas on what might be going on and how to resolve it?







ssh






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 29 at 18:59









utamav

61




61












  • I think you need to create your ssh keys on teh servier... I think it's sshkeygen
    – Joshua Besneatte
    Nov 29 at 20:16










  • Thanks, I am away from the server, but I'll try it. It's funny how it stopped working all by itself. I have the exchanged the keys in the past but I never disabled password login.
    – utamav
    Nov 30 at 12:50


















  • I think you need to create your ssh keys on teh servier... I think it's sshkeygen
    – Joshua Besneatte
    Nov 29 at 20:16










  • Thanks, I am away from the server, but I'll try it. It's funny how it stopped working all by itself. I have the exchanged the keys in the past but I never disabled password login.
    – utamav
    Nov 30 at 12:50
















I think you need to create your ssh keys on teh servier... I think it's sshkeygen
– Joshua Besneatte
Nov 29 at 20:16




I think you need to create your ssh keys on teh servier... I think it's sshkeygen
– Joshua Besneatte
Nov 29 at 20:16












Thanks, I am away from the server, but I'll try it. It's funny how it stopped working all by itself. I have the exchanged the keys in the past but I never disabled password login.
– utamav
Nov 30 at 12:50




Thanks, I am away from the server, but I'll try it. It's funny how it stopped working all by itself. I have the exchanged the keys in the past but I never disabled password login.
– utamav
Nov 30 at 12:50










1 Answer
1






active

oldest

votes

















up vote
0
down vote













You may need to login to the server directly and generate your ssh keys:



$ ssh-keygen


This will ask some questions so you can set up your key.



Do this on your client machine as well.



There is more info available here.



You may also need to reinstall openssh:



$ sudo apt install --reinstall openssh-server openssh-client





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%2f1097225%2fcant-ssh-into-ubuntu-server-from-any-machine%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













    You may need to login to the server directly and generate your ssh keys:



    $ ssh-keygen


    This will ask some questions so you can set up your key.



    Do this on your client machine as well.



    There is more info available here.



    You may also need to reinstall openssh:



    $ sudo apt install --reinstall openssh-server openssh-client





    share|improve this answer



























      up vote
      0
      down vote













      You may need to login to the server directly and generate your ssh keys:



      $ ssh-keygen


      This will ask some questions so you can set up your key.



      Do this on your client machine as well.



      There is more info available here.



      You may also need to reinstall openssh:



      $ sudo apt install --reinstall openssh-server openssh-client





      share|improve this answer

























        up vote
        0
        down vote










        up vote
        0
        down vote









        You may need to login to the server directly and generate your ssh keys:



        $ ssh-keygen


        This will ask some questions so you can set up your key.



        Do this on your client machine as well.



        There is more info available here.



        You may also need to reinstall openssh:



        $ sudo apt install --reinstall openssh-server openssh-client





        share|improve this answer














        You may need to login to the server directly and generate your ssh keys:



        $ ssh-keygen


        This will ask some questions so you can set up your key.



        Do this on your client machine as well.



        There is more info available here.



        You may also need to reinstall openssh:



        $ sudo apt install --reinstall openssh-server openssh-client






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 29 at 20:25

























        answered Nov 29 at 20:18









        Joshua Besneatte

        1,9971923




        1,9971923






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1097225%2fcant-ssh-into-ubuntu-server-from-any-machine%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

            Quarter-circle Tiles

            build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

            Mont Emei