LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-06-2004, 03:52 PM   #1
linuxtesting2
Member
 
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.

-ole
 
Old 12-06-2004, 04:06 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Add:
PermitRootLogin no

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

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

http://www.edafe.org/slackware/index...authentication

Regards,
Edafe
 
Old 02-16-2005, 12:33 PM   #4
Phathead
Member
 
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:
Code:
PasswordAuthentication no
Just don't do that until after you have made sure your keys work.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:25 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration