Following one of the ways to create a secure ssh server in Ubuntu 8.04 Server.
- Install Ubuntu 8.04 Server
- Change root password
sudo passwd root
- Add new username
sudo adduser to2k
- sudo visudo
Append this line to end of ile
to2k ALL=(ALL) ALL
- SSH Configuration
sudo nano /etc/ssh/sshd_config
Find Port 22 and change number to something different (12345) to make hacking more difficult.
Set these to:
PermitRootLogin no
X11Forwarding no
UsePAM no
Append these lines to the very end:
UseDNS no
AllowUsers to2k
-
- Reload SSH
/etc/init.d/ssh reload
- Test SSH Login
SSH login to your slice to new port, with your new username and password:
– Linux: ssh -p 12345 to2k@192.168.100.100
– Windows: putty to2k@192.168.100.100
If you logged on successfully via your new username: ‘to2k’ – you may close ‘root’ session now.