Ivorde Unix/Linux/Database/Web/Mail Forum

View unanswered posts
View active topics
It is currently Sat Feb 04, 2012 10:37 pm


FreeBSD tutorials and how-tos

Bookmark this article:

Author Message
debuser
Post  Post subject: SSH disable password authentication for root (only allow public key authentication)  |  Posted: Mon Jul 12, 2010 10:50 pm

Joined: Thu Aug 06, 2009 9:48 am
Posts: 90

Offline
Save on Delicious
In order for root user to be able to login, first of all make sure it's listed in AllowedUsers if this directive is being used.

Second, change PermitRootLogin from yes/no to "without-password":
Code:
#PermitRootLogin yes
PermitRootLogin without-password


Quote:
PermitRootLogin
Specifies whether root can log in using ssh(1). The argument
must be ``yes'', ``without-password'', ``forced-commands-only'',
or ``no''. The default is ``no''. Note that if
ChallengeResponseAuthentication is ``yes'', the root user may be
allowed in with its password even if PermitRootLogin is set to
``without-password''.

If this option is set to ``without-password'', password authenti-
cation is disabled for root.

If this option is set to ``forced-commands-only'', root login
with public key authentication will be allowed, but only if the
command option has been specified (which may be useful for taking
remote backups even if root login is normally not allowed). All
other authentication methods are disabled for root.

If this option is set to ``no'', root is not allowed to log in.


Restart ssh daemon and try again (Leave one terminal up as backup).


Top
prabu
Post  Post subject: Re: SSH disable password authentication for root (only allow public key authentication)  |  Posted: Tue Feb 08, 2011 9:25 am

Joined: Mon Feb 07, 2011 3:36 pm
Posts: 2

Offline
It is a nice sharing.............


Top
Display posts from previous:  Sort by  
Print view
Who is online
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC + 2 hours [ DST ]

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
DAJ Glass 2 template created by Dustin Baccetti

phpBB SEO