Results 1 to 3 of 3

Thread: SOLVED First time login into a virtualbox via ssh : what is the password?

  1. #1
    Join Date
    Jan 2019
    Beans
    7

    SOLVED First time login into a virtualbox via ssh : what is the password?

    I have a virtualbox on a pc. Both are running kubuntu 17. I wish to talk to my virtualbox via a terminal on my real machine.

    I installed ssh-client and ssh-server on both.

    I found this post :
    https://ubuntuforums.org/showthread.php?t=2205941

    But it stops short. I have the same issue.
    The last questions are :

    Have you configured /etc/ssh/sshd_config?
    Do you have an account on the server?
    Are you using the password for the server account? (That's a common mistake)
    Do you have an account on the server, with a password?

    I looked at sshd_config and made 2 modifications
    It was :
    #PasswordAuthentification yes
    #PermitEmptyPasswords no
    Now it is:
    PasswordAuthentification yes
    PermitEmptyPasswords yes

    Do you have an account on the server? I'm not sure. I have full access to the virtualbox, including root password.
    I tried this password and the empty password. "Permission denied".
    Last edited by alreve; February 1st, 2019 at 01:52 PM. Reason: solved

  2. #2
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: First time login into a virtualbox via ssh : what is the password?

    You need to have a user account on the virtual machine. When you installed Kubuntu, you were asked to set up an account. Did you set up the same account on both machines?

    Ubuntu 17.x has reached end-of-life. You should be using 18.04 which is a "long-term" release that will be supported until April of 2023.

    Ubuntu has no "root password" as some other distros do. To run commands with root privileges you need to use sudo. The account you create at installation will have sudo privileges.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  3. #3
    Join Date
    Jan 2019
    Beans
    7

    Re: First time login into a virtualbox via ssh : what is the password?

    Sorry, I think I am using Kubuntu 18.4.

    Setting up an account... Well, I gave a name to the machine when I installed Kubuntu. When I open a terminal in the virtual box, it opens on /home/<machine name>. Is this what you mean? And I have the sudo password. It is the same password as the one I use to unlock the screen.

    I tried this sudo password, but it is not accepted.

    Edit : Hey! You were right! The issue was the machine name!
    In the documentation I found, it said to type:
    ssh -p 3022 vm@127.0.0.1
    So I typed that. Then I was asked for a password so I got convinced it was a password issue.
    Replacing the "vm" by the name of the virtual machine and using the virtual machine's password solved the problem!

    THANK YOU
    Last edited by alreve; February 1st, 2019 at 01:50 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •