<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>
<div dir="auto" style="direction:ltr; margin:0; padding:0; font-family:sans-serif; font-size:11pt; color:black">
The command I was using to connect to the VM is &quot;ssh -vv NetBSD-VM&quot;. I'll make another user account when I get home later and try again.<br>
<br>
</div>
<div dir="auto" style="direction:ltr; margin:0; padding:0; font-family:sans-serif; font-size:11pt; color:black">
<span id="x_OutlookSignature">
<div dir="auto" style="direction:ltr; margin:0; padding:0; font-family:sans-serif; font-size:11pt; color:black">
Get <a href="https://aka.ms/ghei36">Outlook for Android</a></div>
</span><br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> cs631apue-bounces@lists.stevens.edu &lt;cs631apue-bounces@lists.stevens.edu&gt; on behalf of Jan Schaumann &lt;jschauma@stevens.edu&gt;<br>
<b>Sent:</b> Tuesday, September 3, 2019 1:53:48 PM<br>
<b>To:</b> cs631apue@lists.stevens.edu &lt;cs631apue@lists.stevens.edu&gt;<br>
<b>Subject:</b> Re: [cs631apue] Connecting to Netbsd running on VM</font>
<div>&nbsp;</div>
</div>
</div>
<font size="2"><span style="font-size:11pt;">
<div class="PlainText">Mario P Alexandre &lt;malexan3@stevens.edu&gt; wrote:<br>
&gt; /etc/rc.d/sshd start<br>
<br>
I meant: please provide the exact command you ran to<br>
connect to the system via ssh from outside your VM.<br>
<br>
&gt; I did modify /etc/ssh/ssh_config to allow root login<br>
&gt; by adding the line &quot;PermitRootLogin yes&quot; under Host<br>
&gt; *<br>
<br>
That's not the right place.&nbsp; /etc/ssh/ssh_config<br>
applies to the 'ssh' client side, i.e., when you run<br>
'ssh' on the VM.&nbsp; You'd need to change the setting in<br>
/etc/ssh/sshd_config, but the _right_ way to solve<br>
this is to add another user and log in as that user;<br>
you do not need nor want to run everything as root.<br>
<br>
In fact, in this class the requirement is that you do<br>
not run your code as root, as root has special<br>
privileges and your code will behave differently at<br>
times than if it's executed by a normal user.<br>
<br>
-Jan<br>
_______________________________________________<br>
cs631apue mailing list<br>
cs631apue@lists.stevens.edu<br>
<a href="https://lists.stevens.edu/mailman/listinfo/cs631apue">https://lists.stevens.edu/mailman/listinfo/cs631apue</a><br>
</div>
</span></font>
</body>
</html>