Access denied for SSH on Linux guest (on Windows Host)

Discussions about using Linux guests in VirtualBox.
Post Reply
omega1
Posts: 46
Joined: 7. Nov 2013, 12:53

Access denied for SSH on Linux guest (on Windows Host)

Post by omega1 »

Hello all,

I have a Windows 7 host and I have installed a Debian guest. I have the network set as NAT and have forwarded port 48022 to port 22 via the GUI.

Assume the Host public IP is 1.1.1.1

When I try and access the VM via Putty using 1.1.1.1:48022 it asks me for the login, I type root, then it asks for the password, when I enter it, I get 'Access Denied'. I am sure that the user/pass is correct as I can log into it when I go in via the Host, but get 'Access Denied' when trying to access the VM externally.

I'm not sure why I get this behaviour. I'm sure that the VM is being reached as it asks me for a login and I'm sure the password is correct as I can log in via the Host, so why do I get 'Access Denied'?

Any suggestions would be greatly appreciated.

Thanks in advance.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Access denied for SSH on Linux guest (on Windows Host)

Post by Perryg »

Does root have ssh access? Why are you using root?
omega1
Posts: 46
Joined: 7. Nov 2013, 12:53

Re: Access denied for SSH on Linux guest (on Windows Host)

Post by omega1 »

Perryg wrote:Does root have ssh access?
Yes, I can log in when accessing the VM via the Host desktop using the same credentials I am attempting to use via external IP.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Access denied for SSH on Linux guest (on Windows Host)

Post by Perryg »

Just because you can access via the desktop does not answer either of my questions. Please read them again.
Post Reply