Home · News · Articles · Forum · Downloads · Search Your IP: 38.103.63.58 · Today: Wednesday, November 19, 2008
Main Menu
Home
News
Articles
- General
- Common Software
- Tips & Tricks
- Networking
- Multimedia
- Operation Systems
- Hardware
- Programming
- Security
- Configs
- CMS
Forum
Downloads
Gallery
Search
FAQ
Links
Ping us
Top 10 Article Posters
empty 37
nemo 3
siluni 1
linuxGuru 1
scary 1
tashak 1
Poll
What OS are you using?

Linux

*BSD

Solaris

Mac OS

Windows

Other

You must login to vote.
Disable the root login for SSH
Disable the root login for SSH
This will show you how to disable the root login for SSH on your UNIX based OS.

To stop the direct root access you have to edit the SSH configuration file located at "/etc/ssh/sshd_config"

Open the file with your favorite editor and locate the 'Authentication' section. There set PermitRootLogin to be "no" as in the example bellow.
##################
# Authentication:
#LoginGraceTime 2m
PermitRootLogin no
#StrictModes yes
#MaxAuthTries 6
##################

Once you are ready save the file and restart the ssh service.

Note: You MUST have a different user on the system that you can use to login over SSH otherwise you won't be able to access the machine over SSH anymore.

You can use the following commands to add a new user:

useradd: creates the user
passwd: set the password for the new user
Note: These commands works on Linux. You should check the equivalents for your OS if it's different.
Comments
No Comments have been Posted.
Post Comment
Please Login to Post a Comment.
Ratings
Rating is available to Members only.

Please login or register to vote.

No Ratings have been Posted.
Search

Enter words:


Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Users Online
Guests Online: 1
No Members Online
Registered: 55
Newest: Netherton216
Random Gallery Image
Friends
DJs Place
Fresh Flash Games
Free Wallpapers
PHP Scripts
Levski
Flash Games
Improvements
Bookmark and Share
News Feeds
Article Feeds
Forum Feeds
Spam Poison
Valid CSS!
OSGuides.net 2007 - 2008 Creative Commons License.