システムを新しくインストールした後、DebianLinuxのルートログインはデフォルトで無効になっています。 rootユーザーとしてDebianJessieLinuxサーバーにログインしようとすると、アクセスが拒否されます。例:
$ ssh [email protected] [email protected]'s password: Permission denied, please try again. [email protected]'s password: Permission denied, please try again. [email protected]'s password: Permission denied (publickey,password).
Debian LinuxシステムでrootユーザーのSSHログインを有効にするには、最初にSSHサーバーを設定する必要があります。 /etc/ssh/sshd_config
を開きます 次の行を変更します:
FROM: PermitRootLogin without-password TO: PermitRootLogin yes
上記の変更を行ったら、SSHサーバーを再起動します。
# /etc/init.d/ssh restart [ ok ] Restarting ssh (via systemctl): ssh.service.
今後、rootとしてsshログインできるようになります:
$ ssh [email protected] [email protected]'s password: The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.
次のガイドでは、Ubuntu 16.04 Xenial Xerus Linux Server/DesktopでSSHルートログインを有効にする方法について説明します。