[cs631apue] Connecting to Netbsd running on VM

Yuxi Wang ywang286 at stevens.edu
Thu Aug 29 15:25:59 EDT 2019


You can try to set it to bridge adapter mode.

From: Siddharth Choudhary<mailto:schoud2 at stevens.edu>
Sent: Thursday, August 29, 2019 3:12 PM
To: Elliot Wasem<mailto:ewasem at stevens.edu>
Cc: cs631apue at lists.stevens.edu<mailto:cs631apue at lists.stevens.edu>
Subject: Re: [cs631apue] Connecting to Netbsd running on VM

Hey thanks for responding Eliot, I actually enabled the sshd while installing the netbsd on my VirtualBox but that didn't work. Do you know an another workaround?





On Thu, Aug 29, 2019 at 2:04 PM Elliot Wasem <ewasem at stevens.edu<mailto:ewasem at stevens.edu>> wrote:
I figured it out by doing the following:

1. Setup the 2nd network interface on the VM to be host only
2. Restart your vm, and install openssh. Start sshd
3. Find the inet ip address for your vm
4. Through VirtualBox, forward some port (i used 2222) from 127.0.0.1 on your host machine to the inet ip on port 22 of your VM.

That should do it. Hopefully I didn't miss a step.

On Thu, Aug 29, 2019, 1:44 PM P Athiban <pathiban at stevens.edu<mailto:pathiban at stevens.edu>> wrote:
Hello Professor,

I'm currently running NetBSD on oracle VirtualBox VM in my mac machine. I'm having trouble connecting via ssh from my mac terminal. Could you please tell me how to connect via ssh?

Regards

Athiban

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20190829/74f8065c/attachment-0001.html>


More information about the cs631apue mailing list