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. |
|
 |
11-03-2003, 11:24 AM
|
#1
|
|
LQ Newbie
Registered: Apr 2003
Location: Cheshire - United Kingdom
Distribution: RedHat, SuSE, Slackware, EnGarde
Posts: 11
Rep:
|
Configuring SSH to accept only keys (already have keys)
Hi,
I'm a bit new to securing SSH to do this so I appologise if I may not seam so godly to you guys..
I have a system, Redhat 9 that has openssh installed OpenSSH-3.5p-6 including servers and clients..
I am looking to only enable SSH access via keys. Everyone who will be SSH'ng into this box will already have a public/private keypair and will want to use these.. How can I configure SSH to accept these and not password access?
Your help and efforts are much appreciated.
fr0st
|
|
|
|
11-03-2003, 11:31 AM
|
#2
|
|
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
|
First off, UPGRADE YOUR SSH!!! there was a notification on the home page of LinuxQuestions.org for weeks urging everyone to upgrade to 3.7.1p2 because of security flaws in OpenSSH. Go do that IMMEDIATELY.
Next, edit the following lines in /etc/ssh/sshd_config and restart your ssh daemon
PubkeyAuthentication yes
PasswordAuthentication no
If you want only Pubkey and nothing else, you can search through the whole file and turn off any other type of auth. Just make sure you have Protocol 2 because if you turn off RSAAuthentication you will need to use DSA (ssh2-only).
|
|
|
|
11-03-2003, 12:04 PM
|
#3
|
|
Senior Member
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467
Rep:
|
Quote:
|
First off, UPGRADE YOUR SSH!!! there was a notification on the home page of LinuxQuestions.org for weeks urging everyone to upgrade to 3.7.1p2 because of security flaws in OpenSSH. Go do that IMMEDIATELY.
|
You do not neccessarly need to upgrade to 3.7.1p2 since most distribution backport patches to their stable branch so the changes are minimal. Just do the normal way for updating your software. For Debian this would be apt-get update && apt-get upgrade.
|
|
|
|
11-04-2003, 03:31 AM
|
#4
|
|
LQ Newbie
Registered: Apr 2003
Location: Cheshire - United Kingdom
Distribution: RedHat, SuSE, Slackware, EnGarde
Posts: 11
Original Poster
Rep:
|
OK
Ok,
Thats a fair enough comment... However.. how do I add my key to the system to allow that to be authenticated?
Is it a case of cat key.pub > .ssh/authorized_keys
?
|
|
|
|
| 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
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
ssh keys
|
exodist |
Linux - Networking |
3 |
02-16-2005 10:16 AM |
|
SSH keys
|
alon005 |
Linux - Security |
5 |
10-14-2004 03:39 AM |
|
ssh keys
|
merchtemeagle |
Linux - Newbie |
4 |
10-12-2004 12:12 AM |
|
ssh keys
|
Lucasite |
Linux - Security |
2 |
03-11-2004 12:43 PM |
|
SSh Keys
|
shaggz |
Linux - General |
2 |
02-19-2003 09:09 PM |
All times are GMT -5. The time now is 08:44 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
|
|