LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 01-25-2005, 01:14 AM   #1
jackster
LQ Newbie
 
Registered: Jan 2005
Location: Pretoria, South-Africa
Distribution: Mandrake 10
Posts: 19

Rep: Reputation: 0
SSH Login - Forcing keys!


I want to force openssh to only use public/private keys and not allowing the user to use a password to log on if the key fails. Any hints?

Jack
 
Old 01-25-2005, 07:43 AM   #2
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Look for the file sshd_config and change the line that says...

PasswordAuthentication yes

to...

PasswordAuthentication no
 
Old 01-25-2005, 07:44 AM   #3
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
See also...

http://www.linuxquestions.org/questi...ticle&artid=79
 
Old 01-25-2005, 07:57 AM   #4
jackster
LQ Newbie
 
Registered: Jan 2005
Location: Pretoria, South-Africa
Distribution: Mandrake 10
Posts: 19

Original Poster
Rep: Reputation: 0
Thanx, one more silly question, how do i restart the sshd?

Thanx

Jack
 
Old 01-25-2005, 08:06 AM   #5
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
I'm not sure what distro you're running, but assuming Mandrake, try...

service sshd restart

Or do...

cd /etc/init.d

then...

./sshd restart
 
Old 01-25-2005, 08:09 AM   #6
jackster
LQ Newbie
 
Registered: Jan 2005
Location: Pretoria, South-Africa
Distribution: Mandrake 10
Posts: 19

Original Poster
Rep: Reputation: 0
Cool.

Tx
 
  


Reply


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
Can't login with ssh pub keys fisayo Mandriva 2 11-17-2005 07:12 PM
SSH Forcing users to use RSA keys XaViaR Linux - Security 8 07-07-2005 12:42 AM
Can't login using ssh keys linuxboy69 Linux - Software 2 03-19-2004 02:47 PM
Forcing password change at first login vsp_123 Linux - Security 6 01-27-2004 11:57 AM
Configuring SSH to accept only keys (already have keys) fr0st Linux - Security 3 11-04-2003 03:31 AM


All times are GMT -5. The time now is 04:33 PM.

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