Here are my current conditions:

  • I have UBUNTU DESKTOP on HARD DISK. (I don't use windows)
  • Desktop has ssh installed.
  • Ifnet:
  • Username: kenneth
  • I want Desktop to be the client.
  • VirtualBox Newtork is configured as bridge mode.
  • I Installed UBUNTU SERVER 14.04 on VirtualBox and I configured ifnet (I want this one as the server)
  • I have installed openssh for server as well
  • Username kenneth1
  • I open GNOME-Terminal and do:

    kenneth@kenneth-Inspiron-5558:~$ ssh
    kenneth@'s password:(here I type the password which is correct of course)
    Permission denied, please try again.

I want to manage Server from terminal on my Desktop Gnome Terminal.

What seems to be the problem?

enter image description here

It worked:

<code>enter image description here</code>

  • 2
    Does the virtual machine have a user named kenneth? I see kenneth1. – muru Jan 29 '16 at 16:26
  • the virtual machine's user name is kenneth1, my desktop's user is kenneth – Ken Sandoval Jan 29 '16 at 16:48
  • 3
    Then do ssh kenneth1@192.... – muru Jan 29 '16 at 16:50
  • @muru It worked thank you, See second image: askubuntu.com/users/158442/muru – Ken Sandoval Jan 29 '16 at 17:05

If you have a different username on the system you are connecting to, you have to specify it:

ssh kenneth1@

If you don't specify any username, SSH assumes your current username.


What you actually want to do is to set up port forwarding, to connect a specific port of your HOST to GUEST. Here's an example of my Deepin VM:

enter image description here

In this case, the HOST (Ubuntu 14.04) is a physical machine on my local network. When I do ssh -p 2222 admin@ I am connecting to port 2222 of my HOST machine. The host machine will make connection to port 22 of your GUEST.

In your example, what you'd want to do is set up port forwarding , port 2222 to GUEST IP (whatever you've)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.