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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-25-2005, 01:14 AM
|
#1
|
|
LQ Newbie
Registered: Jan 2005
Location: Pretoria, South-Africa
Distribution: Mandrake 10
Posts: 19
Rep:
|
SSH Login - Forcing keys!
I want to force openssh to only use public/private keys and not allowing the user to use a password to log on if the key fails. Any hints?
Jack
|
|
|
|
01-25-2005, 07:43 AM
|
#2
|
|
Member
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736
Rep:
|
Look for the file sshd_config and change the line that says...
PasswordAuthentication yes
to...
PasswordAuthentication no
|
|
|
|
01-25-2005, 07:44 AM
|
#3
|
|
Member
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736
Rep:
|
|
|
|
|
01-25-2005, 07:57 AM
|
#4
|
|
LQ Newbie
Registered: Jan 2005
Location: Pretoria, South-Africa
Distribution: Mandrake 10
Posts: 19
Original Poster
Rep:
|
Thanx, one more silly question, how do i restart the sshd?
Thanx
Jack
|
|
|
|
01-25-2005, 08:06 AM
|
#5
|
|
Member
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736
Rep:
|
I'm not sure what distro you're running, but assuming Mandrake, try...
service sshd restart
Or do...
cd /etc/init.d
then...
./sshd restart
|
|
|
|
01-25-2005, 08:09 AM
|
#6
|
|
LQ Newbie
Registered: Jan 2005
Location: Pretoria, South-Africa
Distribution: Mandrake 10
Posts: 19
Original Poster
Rep:
|
Cool.
Tx
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:07 PM.
|
|
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
|
|