Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 12-06-2004, 03:52 PM   #1
Registered: Mar 2004
Location: Norway
Distribution: Freebsd, Fedora, Redhat, Solaris 10
Posts: 169

Rep: Reputation: 30
disable root login with ssh

how can i disable root to login with ssh, i cant find anything in /etc/ssh/sshd_config.

Old 12-06-2004, 04:06 PM   #2
Registered: Aug 2002
Posts: 14,765

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
PermitRootLogin no

You can also specify users with
AllowUsers user1 user2
Old 02-16-2005, 11:31 AM   #3
Registered: Feb 2005
Posts: 44

Rep: Reputation: 15
You might also be interested to have a look at:

Old 02-16-2005, 12:33 PM   #4
Registered: Sep 2003
Distribution: Slackware 10.1, Slamd64 10.1, IpCop 1.4
Posts: 125

Rep: Reputation: 15
Absolutely check out that link. Always use public key authentication if you have an SSH server on the Internet. It's much more secure.

It can also be convienent. I keep a copy of PuTTY along with all my keys on an encrypted portion of my USB drive. The keys are also protected by a passphrase, the extra encryption is just for my peace of mind. I can SSH into my computers from anywhere on the Internet.

If you do use public key authentication, it's critical that you disable password authentication in your /etc/ssh/sshd_config to have the line:
PasswordAuthentication no
Just don't do that until after you have made sure your keys work.


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
Disable Root login via ssh UltraSoul Solaris / OpenSolaris 3 02-09-2007 02:18 AM
disable root login via ssh with one exeption inoxtech Linux - Security 3 06-30-2005 11:28 AM
How can I disable root to ssh Soulstealer Linux - Security 2 12-12-2004 11:36 AM
How can I disable root login with SSH? blk96gt Slackware 9 10-02-2004 07:09 AM
SSH/Telnet, disable root login, how? muhazam Linux - Security 6 08-17-2004 12:49 PM

All times are GMT -5. The time now is 06:18 AM.

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