Create a Secure SSH Server in Ubuntu

Create a Secure SSH Server in Ubuntu

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@
– Windows: putty to2k@

If you logged on successfully via your new username: ‘to2k’ – you may close ‘root’ session now.

About Webmaster

Check Also

Acer Aspire TimelineX AS1830T-6651 11.6-Inch Laptop

Pada saat browsing di internet untuk cari lapto, kebetulan saya menemukan di Amazon laptop 11.6 inch tetapi mempunyai spesifikasi yang diinginkan (Processor Intel i5, Windows 7). Dengan kemampuan yang dimiliki ternyata harga juga terjangkau yaitu $544.82 sehingga jika di kurs sekitar 5 jutaan. Laptop tersebut adalah Acer Aspire TimelineX AS1830T-6651.

Leave a Reply

Your email address will not be published. Required fields are marked *