LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-12-2003, 12:47 PM   #1
Timon79
LQ Newbie
 
Registered: Jan 2003
Posts: 7

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


Hi,

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, 02:28 PM   #2
PTBmilo
Member
 
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.
 
  


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


All times are GMT -5. The time now is 03:59 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration