[cs631apue] Connecting to Netbsd running on VM

Jan Schaumann jschauma at stevens.edu
Tue Sep 3 13:53:48 EDT 2019


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


More information about the cs631apue mailing list