GNU/Linux >> Linux の 問題 >  >> Debian

DebianLinuxServerでSSHルートログインを有効にする

システムを新しくインストールした後、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ルートログインを有効にする方法について説明します。


Debian
  1. Ubuntu14.04Linuxサーバーでsshrootログインを許可する

  2. Ubuntu 22.04JammyLinuxでSSHサーバーを有効にする方法

  3. Linuxサーバーがルートログイン時に電子メールアラートを送信するようにする方法

  1. Debian9または10でSSHを有効にする方法

  2. CentOS7でSSHルートログインとセキュアSSHアクセスを無効または有効にする

  3. Amazon Linux AMI で SSH のパスワード ログインを有効にする

  1. Ubuntu 20.04 FocalFossaLinuxでSSHルートログインを許可する

  2. Ubuntu 20.04 FocalFossaLinuxでSSHを有効にする

  3. Ubuntu 20.04sshrootログインを有効にする