LinuxQuestions.org
Visit Jeremy's Blog.
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 06-30-2004, 11:38 PM   #1
u2911
LQ Newbie
 
Registered: Oct 2003
Posts: 15

Rep: Reputation: 0
how to deny password login in the ssh? please


hello guy
I setup a ssh server. everything is ok. I have a question:
How can i allow users to login ssh server only using the key? nor user's password. Just
deny password login in ssh.
Thanks a lot.
 
Old 07-01-2004, 05:02 AM   #2
neil
Member
 
Registered: Jul 2001
Location: Kent, UK
Distribution: /Fedora/Debian/Ubuntu/Xubuntu
Posts: 108

Rep: Reputation: 15
Have a look at /etc/ssh/sshd_config

Change
PasswordAuthentication yes to no

Then exchange public keys and append then to .ssh/authorized_keys

cat host.pub >> authorized_keys

Then you can use a blank passphrase (which is bad)
or use a passphrase once if using the key agent in the background.

You can then login without password Authentication. It uses the keys instead
 
Old 07-01-2004, 07:02 PM   #3
u2911
LQ Newbie
 
Registered: Oct 2003
Posts: 15

Original Poster
Rep: Reputation: 0
thank you neil
yes, my PasswordAuthentication is set to no, i can login using passphrase normally, but if i don't using passphrase(skip), i can use user password to login ssh too, I want to deny the user password to login ssh. how can i do?
 
Old 07-01-2004, 07:12 PM   #4
TBC Cosmo
Member
 
Registered: Feb 2004
Location: NY
Distribution: Fedora 10, CentOS 5.4, Debian 5 Sparc64
Posts: 356

Rep: Reputation: 43
PubkeyAuthentication yes
HostbasedAuthentication no
PasswordAuthentication no
PAMAuthenticationViaKbdInt no
 
Old 07-02-2004, 12:42 AM   #5
u2911
LQ Newbie
 
Registered: Oct 2003
Posts: 15

Original Poster
Rep: Reputation: 0
thanks a lot


machines is great :-)
 
  


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
ssh: deny all users, except one hamish Linux - Security 13 09-07-2008 07:58 PM
How do you deny root logins with ssh? Thaidog Linux - General 5 03-01-2006 04:36 PM
how to deny ssh for ip range? maginotjr Slackware 11 11-01-2005 07:01 AM
deny ip address with ssh DaWallace Slackware 16 05-31-2005 08:40 PM
ssh and /etc/hosts.all & deny tebucky Linux - Security 8 01-27-2005 05:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:23 AM.

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
Open Source Consulting | Domain Registration