[cs631apue] Connecting to Netbsd running on VM

Mario P Alexandre malexan3 at stevens.edu
Tue Sep 3 14:02:45 EDT 2019


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://aka.ms/ghei36>

________________________________
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/88e71ee2/attachment-0001.html>


More information about the cs631apue mailing list