Ubuntu/Fedora – Disable Root SSH

For security reason, we’d better disable the root SSH access to server. Follow the steps below. (root privilege is needed)

1. Edit the SSH config file

  • Ubuntu – vi /etc/ssh/sshd_config
  • Fedora – vi /etc/sshd/sshd_config


 

2. Set the PermitRootLogin to no

PermitRootLogin no

 

3. Restart the SSH service

  • Ubuntu – /etc/init.d/ssh restart
  • Fedora – /etc/init.d/sshd restart

 

Done =)

Reference: Security Tip: Disable Root SSH Login on Linux

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s