配置Debian允许root用户SSH登录
<p>全新安装系统后,默认情况下将禁用Debian Linux上的root登录。当您尝试以root用户身份登录Debian Jessie Linux服务器时,访问将被拒绝。</p><p>要在Debian Linux系统上为root用户启用SSH登录,您需要首先配置SSH服务器。打开<code>/etc/ssh/sshd_config</code>并更改以下行:</p>
<p>从:</p>
<p><code>PermitRootLogin without-password</code><br>
至:</p>
<p><code>PermitRootLogin yes</code><br>
完成上述更改后,请重新启动SSH服务器:</p>
<pre><code># /etc/init.d/ssh restart
[ ok ] Restarting ssh (via systemctl): ssh.service.
</code></pre>
<p>从现在开始,您将能够以root用户身份使用ssh登录:</p><br><br>
来源:https://www.cnblogs.com/pengpengboshi/p/16042972.html
頁:
[1]