Disable ssh root access on Linux server

cd /etc/ssh

vi sshd_config

Uncomment the line “#PermitRootLogin yes” and change yes value to no

PermitRootLogin no

Then restart sshd

/etc/init.d/sshd restart (on ubuntu /etc/init.d/ssh restart)

Advertisements

2 thoughts on “Disable ssh root access on Linux server

  1. Pingback: Setting up Ubuntu Server Edition 7.10 Gutsy Gibbon « RUBRIC Tech Team

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