[cs631apue] Connecting to Netbsd running on VM

Jan Schaumann jschauma at stevens.edu
Mon Sep 2 15:36:34 EDT 2019


Mario P Alexandre <malexan3 at stevens.edu> wrote:
 
> I've been having a similar problem trying to SSH
> into the VirtualBox VM on Windows 10. I have tried
> the port forwarding instructions with a NAT
> connection, bridged adapter instructions, and
> host-only adapter but every time my SSH connection
> has been denied.

What is the actual error you see?

"Connection denied" is very different from "Permission
denied" or from "Connection timed out".

Are you sure you're connecting to the right port?  If,
for example, you're forwarding port 2222 on localhost
to port 22 on your VM, then you need to instruct your
ssh client to connect to port 2222.

Make sure you're using the right username to connect, too.

-Jan


More information about the cs631apue mailing list