[cs631apue] Connecting to Netbsd running on VM

Brian Jefferson bjeffer1 at stevens.edu
Tue Sep 3 15:46:30 EDT 2019


I am not sure if my issue relates to Mario's or not, but I also am having
trouble connecting to NetBSD. I created a new username as mentioned to do
in an earlier email and now when I try to ssh, its like its just waiting
for something to happen, but nothing ever does. I'm pretty sure I set it up
correctly so if anyone has any ideas that would be great.
[image: image.png]
Thanks,
Brian Jefferson

On Tue, Sep 3, 2019 at 2:03 PM Mario P Alexandre <malexan3 at stevens.edu>
wrote:

> The command I was using to connect to the VM is "ssh -vv NetBSD-VM". I'll
> make another user account when I get home later and try again.
>
> Get Outlook for Android
> <https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2Fghei36&data=02%7C01%7Cbjeffer1%40stevens.edu%7Ce1d2a0568f4a4ef3b4ff08d73098f318%7C8d1a69ec03b54345ae21dad112f5fb4f%7C0%7C0%7C637031305815785869&sdata=BBIjL%2F2AEuoOgL6BxRKyw011hrWSPRdAvYWTGY7giwA%3D&reserved=0>
>
> ------------------------------
> *From:* cs631apue-bounces at lists.stevens.edu <
> cs631apue-bounces at lists.stevens.edu> on behalf of Jan Schaumann <
> jschauma at stevens.edu>
> *Sent:* Tuesday, September 3, 2019 1:53:48 PM
> *To:* cs631apue at lists.stevens.edu <cs631apue at lists.stevens.edu>
> *Subject:* Re: [cs631apue] Connecting to Netbsd running on VM
>
> Mario P Alexandre <malexan3 at stevens.edu> wrote:
> > /etc/rc.d/sshd start
>
> I meant: please provide the exact command you ran to
> connect to the system via ssh from outside your VM.
>
> > I did modify /etc/ssh/ssh_config to allow root login
> > by adding the line "PermitRootLogin yes" under Host
> > *
>
> That's not the right place.  /etc/ssh/ssh_config
> applies to the 'ssh' client side, i.e., when you run
> 'ssh' on the VM.  You'd need to change the setting in
> /etc/ssh/sshd_config, but the _right_ way to solve
> this is to add another user and log in as that user;
> you do not need nor want to run everything as root.
>
> In fact, in this class the requirement is that you do
> not run your code as root, as root has special
> privileges and your code will behave differently at
> times than if it's executed by a normal user.
>
> -Jan
> _______________________________________________
> cs631apue mailing list
> cs631apue at lists.stevens.edu
> https://lists.stevens.edu/mailman/listinfo/cs631apue
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20190903/5e5e7c8f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 2511 bytes
Desc: not available
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20190903/5e5e7c8f/attachment.png>


More information about the cs631apue mailing list