Install SSH:
sudo apt-get install ssh- Configure it:
- sudo vi /etc/ssh/sshd_config
- /Port 22[Enter] to search for “Port 22” and replace with a number greater than 1024
- Set these options:
PermitRootLogin no
X11Forwarding no
UsePAM no
UseDNS no
AllowUsers [username] - Restart the service: sudo service ssh reload
- Check you can login on the new port (run ifconfig to see IP).
No comments:
Post a Comment