Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-30-2004, 11:38 PM
|
#1
|
LQ Newbie
Registered: Oct 2003
Posts: 15
Rep:
|
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.
|
|
|
07-01-2004, 05:02 AM
|
#2
|
Member
Registered: Jul 2001
Location: Kent, UK
Distribution: /Fedora/Debian/Ubuntu/Xubuntu
Posts: 108
Rep:
|
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
|
|
|
07-01-2004, 07:02 PM
|
#3
|
LQ Newbie
Registered: Oct 2003
Posts: 15
Original Poster
Rep:
|
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?
|
|
|
07-01-2004, 07:12 PM
|
#4
|
Member
Registered: Feb 2004
Location: NY
Distribution: Fedora 10, CentOS 5.4, Debian 5 Sparc64
Posts: 356
Rep:
|
PubkeyAuthentication yes
HostbasedAuthentication no
PasswordAuthentication no
PAMAuthenticationViaKbdInt no
|
|
|
07-02-2004, 12:42 AM
|
#5
|
LQ Newbie
Registered: Oct 2003
Posts: 15
Original Poster
Rep:
|
thanks a lot
machines is great :-)
|
|
|
All times are GMT -5. The time now is 10:23 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|