Lost SSH access after Upgrade to 18.04

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












After upgrading 2 16.04 servers to 18.04 I lost ssh access to both. During both upgrades I got a message asking if I wanted to keep my custom config file or if I would like to replace it. I chose to keep it as both servers are configured as SFTP servers. Any suggestions for how to get ssh for remote login available again would be appreciated.



SFTP is still working for my configured users on both servers.



Thanks!







share|improve this question




















  • You should update your question with more info. What are the exact commands you have executed? What are the outputs you are getting? "Lost ssh access" is not very specific.
    – curusarn
    May 16 at 22:28














up vote
0
down vote

favorite












After upgrading 2 16.04 servers to 18.04 I lost ssh access to both. During both upgrades I got a message asking if I wanted to keep my custom config file or if I would like to replace it. I chose to keep it as both servers are configured as SFTP servers. Any suggestions for how to get ssh for remote login available again would be appreciated.



SFTP is still working for my configured users on both servers.



Thanks!







share|improve this question




















  • You should update your question with more info. What are the exact commands you have executed? What are the outputs you are getting? "Lost ssh access" is not very specific.
    – curusarn
    May 16 at 22:28












up vote
0
down vote

favorite









up vote
0
down vote

favorite











After upgrading 2 16.04 servers to 18.04 I lost ssh access to both. During both upgrades I got a message asking if I wanted to keep my custom config file or if I would like to replace it. I chose to keep it as both servers are configured as SFTP servers. Any suggestions for how to get ssh for remote login available again would be appreciated.



SFTP is still working for my configured users on both servers.



Thanks!







share|improve this question












After upgrading 2 16.04 servers to 18.04 I lost ssh access to both. During both upgrades I got a message asking if I wanted to keep my custom config file or if I would like to replace it. I chose to keep it as both servers are configured as SFTP servers. Any suggestions for how to get ssh for remote login available again would be appreciated.



SFTP is still working for my configured users on both servers.



Thanks!









share|improve this question











share|improve this question




share|improve this question










asked May 16 at 21:49









Oscar Smarty

122




122











  • You should update your question with more info. What are the exact commands you have executed? What are the outputs you are getting? "Lost ssh access" is not very specific.
    – curusarn
    May 16 at 22:28
















  • You should update your question with more info. What are the exact commands you have executed? What are the outputs you are getting? "Lost ssh access" is not very specific.
    – curusarn
    May 16 at 22:28















You should update your question with more info. What are the exact commands you have executed? What are the outputs you are getting? "Lost ssh access" is not very specific.
– curusarn
May 16 at 22:28




You should update your question with more info. What are the exact commands you have executed? What are the outputs you are getting? "Lost ssh access" is not very specific.
– curusarn
May 16 at 22:28










2 Answers
2






active

oldest

votes

















up vote
0
down vote













It appears the allowed ciphers for OpenSSH have changed. I moved Blowfish to the top of the order in my client and was able to connect to one. On the other I had to comment out the Ciphers line in the sshd_config, that command is optional anyway. After that I was able to connect to both servers.






share|improve this answer



























    up vote
    0
    down vote













    I got the same warning and could not get back in too. I had two issues that needed to be fixed.



    My VPS provider offers another way in with LISH. I noticed SSH errors in the boot up window. What was wrong with the SSH service? Running sudo /usr/sbin/sshd –T gave me a
    Missing privilege separation directory: /var/run/sshd error.



    After following these instructions SSH problem after update, at least ssh would run.
    mkdir /var/run/sshd
    chmod 0755 /var/run/sshd



    But my key was still not accepted. Then I started tailing the auth.log. Lish cut off the line, so this was all I had to go on: error: userauth_pubkey: could not parse k . But the first Google hit led me to a report that showed that SSH was failing for key length on Windows boxes. Just on a hunch, I created a new public private key pair and installed it – and Voila, I am in. My old key had been 1024 bits, and was made so long ago that I cannot be sure what encryption method was used in it’s creation.
    https://github.com/PowerShell/Win32-OpenSSH/issues/855






    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: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      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%2f1037131%2flost-ssh-access-after-upgrade-to-18-04%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      0
      down vote













      It appears the allowed ciphers for OpenSSH have changed. I moved Blowfish to the top of the order in my client and was able to connect to one. On the other I had to comment out the Ciphers line in the sshd_config, that command is optional anyway. After that I was able to connect to both servers.






      share|improve this answer
























        up vote
        0
        down vote













        It appears the allowed ciphers for OpenSSH have changed. I moved Blowfish to the top of the order in my client and was able to connect to one. On the other I had to comment out the Ciphers line in the sshd_config, that command is optional anyway. After that I was able to connect to both servers.






        share|improve this answer






















          up vote
          0
          down vote










          up vote
          0
          down vote









          It appears the allowed ciphers for OpenSSH have changed. I moved Blowfish to the top of the order in my client and was able to connect to one. On the other I had to comment out the Ciphers line in the sshd_config, that command is optional anyway. After that I was able to connect to both servers.






          share|improve this answer












          It appears the allowed ciphers for OpenSSH have changed. I moved Blowfish to the top of the order in my client and was able to connect to one. On the other I had to comment out the Ciphers line in the sshd_config, that command is optional anyway. After that I was able to connect to both servers.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 17 at 8:08









          Oscar Smarty

          122




          122






















              up vote
              0
              down vote













              I got the same warning and could not get back in too. I had two issues that needed to be fixed.



              My VPS provider offers another way in with LISH. I noticed SSH errors in the boot up window. What was wrong with the SSH service? Running sudo /usr/sbin/sshd –T gave me a
              Missing privilege separation directory: /var/run/sshd error.



              After following these instructions SSH problem after update, at least ssh would run.
              mkdir /var/run/sshd
              chmod 0755 /var/run/sshd



              But my key was still not accepted. Then I started tailing the auth.log. Lish cut off the line, so this was all I had to go on: error: userauth_pubkey: could not parse k . But the first Google hit led me to a report that showed that SSH was failing for key length on Windows boxes. Just on a hunch, I created a new public private key pair and installed it – and Voila, I am in. My old key had been 1024 bits, and was made so long ago that I cannot be sure what encryption method was used in it’s creation.
              https://github.com/PowerShell/Win32-OpenSSH/issues/855






              share|improve this answer
























                up vote
                0
                down vote













                I got the same warning and could not get back in too. I had two issues that needed to be fixed.



                My VPS provider offers another way in with LISH. I noticed SSH errors in the boot up window. What was wrong with the SSH service? Running sudo /usr/sbin/sshd –T gave me a
                Missing privilege separation directory: /var/run/sshd error.



                After following these instructions SSH problem after update, at least ssh would run.
                mkdir /var/run/sshd
                chmod 0755 /var/run/sshd



                But my key was still not accepted. Then I started tailing the auth.log. Lish cut off the line, so this was all I had to go on: error: userauth_pubkey: could not parse k . But the first Google hit led me to a report that showed that SSH was failing for key length on Windows boxes. Just on a hunch, I created a new public private key pair and installed it – and Voila, I am in. My old key had been 1024 bits, and was made so long ago that I cannot be sure what encryption method was used in it’s creation.
                https://github.com/PowerShell/Win32-OpenSSH/issues/855






                share|improve this answer






















                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  I got the same warning and could not get back in too. I had two issues that needed to be fixed.



                  My VPS provider offers another way in with LISH. I noticed SSH errors in the boot up window. What was wrong with the SSH service? Running sudo /usr/sbin/sshd –T gave me a
                  Missing privilege separation directory: /var/run/sshd error.



                  After following these instructions SSH problem after update, at least ssh would run.
                  mkdir /var/run/sshd
                  chmod 0755 /var/run/sshd



                  But my key was still not accepted. Then I started tailing the auth.log. Lish cut off the line, so this was all I had to go on: error: userauth_pubkey: could not parse k . But the first Google hit led me to a report that showed that SSH was failing for key length on Windows boxes. Just on a hunch, I created a new public private key pair and installed it – and Voila, I am in. My old key had been 1024 bits, and was made so long ago that I cannot be sure what encryption method was used in it’s creation.
                  https://github.com/PowerShell/Win32-OpenSSH/issues/855






                  share|improve this answer












                  I got the same warning and could not get back in too. I had two issues that needed to be fixed.



                  My VPS provider offers another way in with LISH. I noticed SSH errors in the boot up window. What was wrong with the SSH service? Running sudo /usr/sbin/sshd –T gave me a
                  Missing privilege separation directory: /var/run/sshd error.



                  After following these instructions SSH problem after update, at least ssh would run.
                  mkdir /var/run/sshd
                  chmod 0755 /var/run/sshd



                  But my key was still not accepted. Then I started tailing the auth.log. Lish cut off the line, so this was all I had to go on: error: userauth_pubkey: could not parse k . But the first Google hit led me to a report that showed that SSH was failing for key length on Windows boxes. Just on a hunch, I created a new public private key pair and installed it – and Voila, I am in. My old key had been 1024 bits, and was made so long ago that I cannot be sure what encryption method was used in it’s creation.
                  https://github.com/PowerShell/Win32-OpenSSH/issues/855







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Aug 14 at 14:46









                  wruckie

                  1138




                  1138






















                       

                      draft saved


                      draft discarded


























                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1037131%2flost-ssh-access-after-upgrade-to-18-04%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Popular posts from this blog

                      pylint3 and pip3 broken

                      Missing snmpget and snmpwalk

                      How to enroll fingerprints to Ubuntu 17.10 with VFS491