How To Prevent SSH Root AccessFebruary 7th, 2008 · 1 CommentWhile this is a well know security measure, I still see so many Linux servers that allow root login through SSH that I thought I’d post it here. Before you make change to your Linux box, make sure that you’ve got a normal user account created otherwise you’ll lock yourself out unless you’ve got physical access to your server. Here’s how you can add a user account through command lines:
And find the line that contains:
Uncomment the parameter and set its value to ‘no’:
Now save the change and exit the editor. Restart sshd service to apply the change.
From now on you will not be able to login as root first. You will have to login as a normal user and then become root by issuing:
Related Posts |
Popular PostsLatest PostsLatest Deals & Coupons
Recent Comments
Recent WebmastersTag Cloud
1and1
apache
centos
cheap web hosting
control panel
coupon code
coupons
coupons codes
cpanel
dreamhost
godaddy
godaddy vs 1and1
green web hosting
hostdime
hostgator
hostpapa
iis
inmotion hosting
knownhost
linux
mysql
openads
openx
php
reseller hosting
security
shared hosting
system administration
vps
web hosting
web hosting comparison
Web Hosting Comparisons
whm
windows
windows 2008
|
|||||||||
1 response so far ↓
1. Response by : How To Move A Website Between Webservers Using cPanel / WHM on May 5, 2008 at 12:04 am
[...] Before we go any further, you must ensure that the root user can connect to the source server through SSH. This is usually forbidden but you can permit it for the time you will be copying accounts. Read this tutorial for more information on enabling and disabling SSH root access. [...]
Leave a Comment