Secure your SSH access
August 9, 2016
Create New Account
$ adduser admin1 --home /var/www
Add New Account as Sudoers
$ nano /etc/sudoers
Disable root account
$ nano /etc/ssh/sshd_config
Change root login
PermitRootLogin yes
change to PermitRootLogin no
Change SSH port
Port 22
change to Port e.q 2223
Restart SSH
$ service ssh restart
Change Owner www/html folder
$ sudo chown -R admin1:root /var/www/html