Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-12-2003, 11:47 AM   #1
LQ Newbie
Registered: Jan 2003
Posts: 7

Rep: Reputation: 0
Question ssh2 login with public key ONLY?


I want to login with a specific user with a public key only (so I want to disable logins with password for this user).

I put a file named "config" in ~/.ssh/config that looks like this:

PubkeyAuthentication yes
PasswordAuthentication no

Login with the public key works fine. But login with a password still works. How can I disable this?

Thanks for your help
Old 01-12-2003, 01:28 PM   #2
Registered: Jan 2003
Posts: 167

Rep: Reputation: 30
There might be another way, I'd do this:

Create a user with VERY restricted scope, and then delete the 'x' in their /etc/passwd.

There's also hacks to 'getty' out there that lets you log in w/ out a password.


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
Cannot find public key. codedv Linux - General 2 10-11-2004 03:04 AM
GPG Data, Secret Key but no Public Key? Aeiri Linux - Software 5 07-20-2004 06:00 PM
How do I get a DSA public key ??? amp2000 Linux - General 5 12-17-2003 03:30 PM
RSA public key encryption/private key decription koningshoed Linux - Security 1 08-08-2002 07:25 AM
PGP public key? mikeshn General 3 05-01-2002 11:12 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:15 PM.

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