Disable SSH password on Ubuntu virtual machine












0














I have Ubuntu Server 18 installed on a virtualbox instance. I want to be able to SSH into it from the desktop computer that it's currently installed on and running on as well as from my laptop. Would like to be able to remote into it from work on my laptop, as i plan to use the virtual machine as a web server to run my blog.



As of now, when i run ip addr in my Ubuntu Server VM, it's giving me a 192.168.0.x ip address.



I open up a command prompt window in Windows and type: ssh 192.168.0.x



Output is:
windowsmachinelocalusername@192.168.0.x's password:



I have no idea why that is the output. Why would my windows machine's local username be there..the virtual machine is an entirely separate IP when using Bridged Network Adapter in the VM options isn't it? So that's pretty strange.



So, i try typing in the password that i've set for root in the Ubuntu Server VM and the output is:



Permission denied, please try again.



This is my first time using SSH for this purpose, can anyone clarify what i am doing wrong here? Thanks.










share|improve this question



























    0














    I have Ubuntu Server 18 installed on a virtualbox instance. I want to be able to SSH into it from the desktop computer that it's currently installed on and running on as well as from my laptop. Would like to be able to remote into it from work on my laptop, as i plan to use the virtual machine as a web server to run my blog.



    As of now, when i run ip addr in my Ubuntu Server VM, it's giving me a 192.168.0.x ip address.



    I open up a command prompt window in Windows and type: ssh 192.168.0.x



    Output is:
    windowsmachinelocalusername@192.168.0.x's password:



    I have no idea why that is the output. Why would my windows machine's local username be there..the virtual machine is an entirely separate IP when using Bridged Network Adapter in the VM options isn't it? So that's pretty strange.



    So, i try typing in the password that i've set for root in the Ubuntu Server VM and the output is:



    Permission denied, please try again.



    This is my first time using SSH for this purpose, can anyone clarify what i am doing wrong here? Thanks.










    share|improve this question

























      0












      0








      0







      I have Ubuntu Server 18 installed on a virtualbox instance. I want to be able to SSH into it from the desktop computer that it's currently installed on and running on as well as from my laptop. Would like to be able to remote into it from work on my laptop, as i plan to use the virtual machine as a web server to run my blog.



      As of now, when i run ip addr in my Ubuntu Server VM, it's giving me a 192.168.0.x ip address.



      I open up a command prompt window in Windows and type: ssh 192.168.0.x



      Output is:
      windowsmachinelocalusername@192.168.0.x's password:



      I have no idea why that is the output. Why would my windows machine's local username be there..the virtual machine is an entirely separate IP when using Bridged Network Adapter in the VM options isn't it? So that's pretty strange.



      So, i try typing in the password that i've set for root in the Ubuntu Server VM and the output is:



      Permission denied, please try again.



      This is my first time using SSH for this purpose, can anyone clarify what i am doing wrong here? Thanks.










      share|improve this question













      I have Ubuntu Server 18 installed on a virtualbox instance. I want to be able to SSH into it from the desktop computer that it's currently installed on and running on as well as from my laptop. Would like to be able to remote into it from work on my laptop, as i plan to use the virtual machine as a web server to run my blog.



      As of now, when i run ip addr in my Ubuntu Server VM, it's giving me a 192.168.0.x ip address.



      I open up a command prompt window in Windows and type: ssh 192.168.0.x



      Output is:
      windowsmachinelocalusername@192.168.0.x's password:



      I have no idea why that is the output. Why would my windows machine's local username be there..the virtual machine is an entirely separate IP when using Bridged Network Adapter in the VM options isn't it? So that's pretty strange.



      So, i try typing in the password that i've set for root in the Ubuntu Server VM and the output is:



      Permission denied, please try again.



      This is my first time using SSH for this purpose, can anyone clarify what i am doing wrong here? Thanks.







      linux networking ubuntu ssh virtualbox






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 10 at 0:12









      Spencer Livingston

      61




      61






















          1 Answer
          1






          active

          oldest

          votes


















          0














          The default user for a SSH connection is the local user. It's the same on Unix. How should the SSH client know what user you want if it is different from the current user?



          You won't be able to login as windowsmachinelocalusername, because the Linux machine doesn't know that user, and therefor doesn't accept any password for that user.



          If you want to login as root, use the command



          ssh root@192.168.0.x





          share|improve this answer





















          • Thanks for the answer. This did not end up working for me, but, connecting through PuTTY did work for me.:)
            – Spencer Livingston
            Dec 10 at 1:55






          • 1




            @SpencerL putty (great tool) is different from ssh in that it prompts for a username (unless part of site config). As this answer states, plain ssh will take whatever local user it is being called as if no user is otherwise provided. On a *nix system (OS X included) you can create shortcuts to various servers with various options in ~/.ssh/config. These options can include a username and even a auth key file reference.
            – ivanivan
            Dec 10 at 3:36











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          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',
          autoActivateHeartbeat: false,
          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%2fsuperuser.com%2fquestions%2f1382204%2fdisable-ssh-password-on-ubuntu-virtual-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









          0














          The default user for a SSH connection is the local user. It's the same on Unix. How should the SSH client know what user you want if it is different from the current user?



          You won't be able to login as windowsmachinelocalusername, because the Linux machine doesn't know that user, and therefor doesn't accept any password for that user.



          If you want to login as root, use the command



          ssh root@192.168.0.x





          share|improve this answer





















          • Thanks for the answer. This did not end up working for me, but, connecting through PuTTY did work for me.:)
            – Spencer Livingston
            Dec 10 at 1:55






          • 1




            @SpencerL putty (great tool) is different from ssh in that it prompts for a username (unless part of site config). As this answer states, plain ssh will take whatever local user it is being called as if no user is otherwise provided. On a *nix system (OS X included) you can create shortcuts to various servers with various options in ~/.ssh/config. These options can include a username and even a auth key file reference.
            – ivanivan
            Dec 10 at 3:36
















          0














          The default user for a SSH connection is the local user. It's the same on Unix. How should the SSH client know what user you want if it is different from the current user?



          You won't be able to login as windowsmachinelocalusername, because the Linux machine doesn't know that user, and therefor doesn't accept any password for that user.



          If you want to login as root, use the command



          ssh root@192.168.0.x





          share|improve this answer





















          • Thanks for the answer. This did not end up working for me, but, connecting through PuTTY did work for me.:)
            – Spencer Livingston
            Dec 10 at 1:55






          • 1




            @SpencerL putty (great tool) is different from ssh in that it prompts for a username (unless part of site config). As this answer states, plain ssh will take whatever local user it is being called as if no user is otherwise provided. On a *nix system (OS X included) you can create shortcuts to various servers with various options in ~/.ssh/config. These options can include a username and even a auth key file reference.
            – ivanivan
            Dec 10 at 3:36














          0












          0








          0






          The default user for a SSH connection is the local user. It's the same on Unix. How should the SSH client know what user you want if it is different from the current user?



          You won't be able to login as windowsmachinelocalusername, because the Linux machine doesn't know that user, and therefor doesn't accept any password for that user.



          If you want to login as root, use the command



          ssh root@192.168.0.x





          share|improve this answer












          The default user for a SSH connection is the local user. It's the same on Unix. How should the SSH client know what user you want if it is different from the current user?



          You won't be able to login as windowsmachinelocalusername, because the Linux machine doesn't know that user, and therefor doesn't accept any password for that user.



          If you want to login as root, use the command



          ssh root@192.168.0.x






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 10 at 0:52









          RalfFriedl

          1,030137




          1,030137












          • Thanks for the answer. This did not end up working for me, but, connecting through PuTTY did work for me.:)
            – Spencer Livingston
            Dec 10 at 1:55






          • 1




            @SpencerL putty (great tool) is different from ssh in that it prompts for a username (unless part of site config). As this answer states, plain ssh will take whatever local user it is being called as if no user is otherwise provided. On a *nix system (OS X included) you can create shortcuts to various servers with various options in ~/.ssh/config. These options can include a username and even a auth key file reference.
            – ivanivan
            Dec 10 at 3:36


















          • Thanks for the answer. This did not end up working for me, but, connecting through PuTTY did work for me.:)
            – Spencer Livingston
            Dec 10 at 1:55






          • 1




            @SpencerL putty (great tool) is different from ssh in that it prompts for a username (unless part of site config). As this answer states, plain ssh will take whatever local user it is being called as if no user is otherwise provided. On a *nix system (OS X included) you can create shortcuts to various servers with various options in ~/.ssh/config. These options can include a username and even a auth key file reference.
            – ivanivan
            Dec 10 at 3:36
















          Thanks for the answer. This did not end up working for me, but, connecting through PuTTY did work for me.:)
          – Spencer Livingston
          Dec 10 at 1:55




          Thanks for the answer. This did not end up working for me, but, connecting through PuTTY did work for me.:)
          – Spencer Livingston
          Dec 10 at 1:55




          1




          1




          @SpencerL putty (great tool) is different from ssh in that it prompts for a username (unless part of site config). As this answer states, plain ssh will take whatever local user it is being called as if no user is otherwise provided. On a *nix system (OS X included) you can create shortcuts to various servers with various options in ~/.ssh/config. These options can include a username and even a auth key file reference.
          – ivanivan
          Dec 10 at 3:36




          @SpencerL putty (great tool) is different from ssh in that it prompts for a username (unless part of site config). As this answer states, plain ssh will take whatever local user it is being called as if no user is otherwise provided. On a *nix system (OS X included) you can create shortcuts to various servers with various options in ~/.ssh/config. These options can include a username and even a auth key file reference.
          – ivanivan
          Dec 10 at 3:36


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • 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%2fsuperuser.com%2fquestions%2f1382204%2fdisable-ssh-password-on-ubuntu-virtual-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

          Aardman Animations

          Are they similar matrix

          “minimization” problem in Euclidean space related to orthonormal basis