zencitta / 261854162

Notes
0 stars 0 forks source link

disable root user remote login for new server #28

Open zencitta opened 7 years ago

zencitta commented 7 years ago
  1. add new user adduser newuser
  2. edit sshd config file vim /etc/ssh/sshd_config change PermitRootLogin yes to PermitRootLogin no or PermitRootLogin without-password
  3. restart sshd service service ssh restart for ubuntu