sshでrootログインを禁止する sudo vi /etc/ssh/sshd_config 下記の部分を変更 PermitRootLogin yes #ここをnoに変更 sshを 再起動する sudo service ssh restart