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. |
|
 |
10-12-2004, 05:32 PM
|
#1
|
|
LQ Newbie
Registered: Oct 2004
Posts: 9
Rep:
|
SSH keys
I have been sent a pair of keys generated on remote host. I placed both keys in ~/.ssh and ~/.ssh2, however, I can't connect to the remote system when I run ssh user@host with a message Persmission denied (public key). I know the keys are correct and I don't have access to remote system, to sshd.
Other clients are able to connect to remote host using the keys.
Version of ssh is 3.8.1p.
Any help would be appricated
|
|
|
|
10-12-2004, 09:03 PM
|
#2
|
|
Member
Registered: Apr 2002
Posts: 498
Rep:
|
Just to clarify, you did put them in ~/.ssh/authorized_keys, correct? (e.g. cat key1.pub >> ~/.ssh/authorized_keys) What does /var/log/secure say? Is it possible your sshd is configured to look for keys in some other file?
|
|
|
|
10-12-2004, 09:47 PM
|
#3
|
|
LQ Newbie
Registered: Oct 2004
Posts: 9
Original Poster
Rep:
|
Quote:
Originally posted by TruckStuff
Just to clarify, you did put them in ~/.ssh/authorized_keys, correct? (e.g. cat key1.pub >> ~/.ssh/authorized_keys) What does /var/log/secure say? Is it possible your sshd is configured to look for keys in some other file?
|
autorized_keys on the remote host to which i am trying to connect to?
I don't have access to it. Also, they keys on the remote host were generated properly and other hosts can connect to it using the same keys as I indicated in my original post.
Thanks for you reply.
|
|
|
|
10-13-2004, 10:27 AM
|
#4
|
|
LQ Newbie
Registered: Sep 2004
Posts: 11
Rep:
|
Only ever really had problems other way round, but might be worth making sure your key folders are chmod 700 and the files themselves also..make sure they were ftp'ed and not copy/pasted (so there are no line breaks etc), I think ssh won't wont work if it feels something is insecure. Just possibilities I can think of.
|
|
|
|
10-13-2004, 06:04 PM
|
#5
|
|
LQ Newbie
Registered: Oct 2004
Posts: 9
Original Poster
Rep:
|
Quote:
Originally posted by alon005
autorized_keys on the remote host to which i am trying to connect to?
I don't have access to it. Also, they keys on the remote host were generated properly and other hosts can connect to it using the same keys as I indicated in my original post.
Thanks for you reply.
|
If you have read my ealrier posts you'd have seen that I can connect to other hosts using .ssh .ssh2 holding the keys and these directories are chmod 'ed to 0700.
Could someone tell me where I could similar type questions?
I have to fix this problem soon, I suspect there's compatibility problem between protocol 1 and protocol 2
Thanks everyone for replies.
|
|
|
|
10-14-2004, 03:39 AM
|
#6
|
|
LQ Newbie
Registered: Sep 2004
Posts: 11
Rep:
|
Hmm I'm probably blind, as just reread and you don't mention that you can connect to other hosts with them (but you do mention other hosts than you can connect to the remote), nor the chmod.
I think start from scratch and keep it clear as ssh keys can get messy if not extremely clear on everything, most problems are just a very simple to fix once its clear and its difficult for other people to fix ssh key problems without access without everything being extremely clear.
Tell us exactly what filenames you have in each folder and its permissions and parent permissions and the format of the contents of each file. Also what other filenames you have and are connecting to different hosts with that work. I know you probably feel you are probably repeating yourself, but there's nothing like having output pasted of everything, so new readers are as clear as you are on your settings.
Also do ssh -v user@host paste the output (or even ssh -vvv user@host will show more info), and paste it, hiding anything private.
|
|
|
|
| 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 02:33 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
|
|