LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 06-02-2008, 12:47 AM   #1
jakykong
Member
 
Registered: Apr 2006
Location: Washington
Distribution: Debian Gnu/Linux Lenny on AMD64x2 (32-bit mode), an AMD Sempron 64 laptop, debian, 32bit
Posts: 101

Rep: Reputation: 15
SSH Authentication -- Disabling passwords only for root?


Greetings!

I sincerely hope I selected the correct forum for this question (I was debating between 'server', 'networking' and here).

I have successfully enabled RSA Authentication for SSH on my server. No problems with that -- it works great, my public keys are all setup right, and so forth.

The problem is that enabling root login also enables root login via a password -- which I don't want (for obvious security reasons). At the same time, I have regular users who I DO want to be able to log in via a password (largely because I use that user on many machines, at times arbitrary machines, so RSA authentication is entirely impractical).

Is there some way to disable password logins for root, without disabling them for anyone else?
 
Old 06-02-2008, 01:28 AM   #2
Arul
LQ Newbie
 
Registered: Jul 2003
Posts: 1

Rep: Reputation: 0
Set PermitRootLogin in sshd_config with the appropriate option.

Check the sshd_config man page for more details.
 
Old 06-02-2008, 02:03 AM   #3
jakykong
Member
 
Registered: Apr 2006
Location: Washington
Distribution: Debian Gnu/Linux Lenny on AMD64x2 (32-bit mode), an AMD Sempron 64 laptop, debian, 32bit
Posts: 101

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Arul View Post
Set PermitRootLogin in sshd_config with the appropriate option.

Check the sshd_config man page for more details.
I can't believe I missed that. Thanks!
 
  


Reply

Tags
solution


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH Keybased authentication for "root" user on linux. adastane Linux - Networking 2 12-13-2007 04:57 AM
SSH and passwords Hazzie Linux - Security 3 11-18-2004 11:53 AM
ssh question about passwords shanenin Linux - Networking 0 09-13-2004 02:44 PM
Disabling root login via SSH moger Linux - Security 7 06-20-2004 04:55 PM
Disabling the chroot in proftpd and enabling root logins on ssh/proftpd jon_k Linux - Software 1 06-16-2004 11:27 AM


All times are GMT -5. The time now is 10:02 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration