Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 04-23-2010, 02:38 PM   #1
Registered: Feb 2009
Posts: 50

Rep: Reputation: 15
Question requiring PPK secure key, disabling user/passwd login

Hi - I am using Red Hat and was wondering how to disable username and password only login and require that a PPK secure key file be used for authentication ? I can log in using the secure private key and the public key that is in ~/.ssh/authorized_keys but i can still log in using the plain username and password login.

Old 04-23-2010, 03:04 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,560
Blog Entries: 14

Rep: Reputation: 964Reputation: 964Reputation: 964Reputation: 964Reputation: 964Reputation: 964Reputation: 964Reputation: 964
If you put an an exclamation point in front of the encrypted password it locks the password. I think at that point ssh still works but havent' tested it.
Old 04-23-2010, 03:57 PM   #3
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
In sshd_config, enable PubkeyAuthentication, and explicitly disable all other Authentication methods.


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 user/passwd or PPK secure key foampile Linux - Security 3 05-05-2010 01:20 AM
SFTP using PPK key file [SOLVED] exactiv Linux - Networking 1 03-26-2010 11:09 AM
Removing ssh authenticatin private key ppk moor93 Linux - Networking 5 07-01-2009 09:10 AM
How to add a putty generated .ppk key ZAMO Linux - General 2 07-10-2008 07:49 PM
New Linux User Requiring Help kid303 Linux - Distributions 3 11-01-2006 05:23 AM

All times are GMT -5. The time now is 05:32 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