Change SSH port and disable root access

  • sudo nano -w /etc/ssh/sshd_config
  • change port from 22 to whatever
  • root access from yes to no
  • crtl+x
  • yes
  • enter
  • sudo service sshd restart