
Photo by
thinkfeeldraw
Conoha VPS の一番安いやつで Root ログイン出来ないようにする。
前回の続きです。
OS は OpenSUSE です。
root でログインします。
ssh root@xxx.xxx.xxx.xxx
/etc/ssh/sshd_config を開きます。
以下の PermitRootLogin に設定されている値を yes から no に変更します。
# PermitRootLogin yes
↓
PermitRootLogin yes
/etc/ssh/sshd_config で設定した内容を反映します。
systemctl reload sshd
おしまい。