Red Hat Networking - ssh question

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat Networking > November 2005 > ssh question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author ssh question
Kevin

2005-11-26, 5:50 pm

I can not get ssh to work with certificates.

This is what I have done:

mkdir /home/kevin/.ssh
cd /home/kevin/.ssh
ssh-keygen -t rsa
kevin # for filename
<enter> # for null passcode
<enter> #confirm null passcode

then rcp to kevin@remote_IP:/home/kevin/.ssh/authorized_keys

then (logged in as kevin) I did
ssh remote_IP

but it still is requesting kevin@remote's password

project due Monday - Desperate!!!
THX for any help!


James T.

2005-11-26, 5:50 pm

On Sat, 26 Nov 2005 19:13:55 +0000, Kevin wrote:

> I can not get ssh to work with certificates.
>
> This is what I have done:
>
> mkdir /home/kevin/.ssh
> cd /home/kevin/.ssh
> ssh-keygen -t rsa
> kevin # for filename
> <enter> # for null passcode
> <enter> #confirm null passcode
>
> then rcp to kevin@remote_IP:/home/kevin/.ssh/authorized_keys
>
> then (logged in as kevin) I did
> ssh remote_IP
>
> but it still is requesting kevin@remote's password
>
> project due Monday - Desperate!!!
> THX for any help!


I recommend that read this article on OSNews.com

Keychain - OpenSSH Key Management (dated: 10/26/05)
http://www.osnews.com/story.php?news_id=12416


It is about how to do exactly what you are referring to.
Scott Lurndal

2005-11-30, 5:54 pm

"Kevin" <kweinman@neo.rr.com> writes:
>I can not get ssh to work with certificates.


First off, it is not a certificate, but rather a
public/private key pair.

>
>This is what I have done:
>
>mkdir /home/kevin/.ssh
>cd /home/kevin/.ssh
>ssh-keygen -t rsa
>kevin # for filename
><enter> # for null passcode
><enter> #confirm null passcode
>
>then rcp to kevin@remote_IP:/home/kevin/.ssh/authorized_keys


I presume you put the public key (kevin.pub) as the
authorized key, the permissions and ownership of the
..ssh directory and the authorized_keys files are
correct, and the permissions on the private key
file on the local host are correct.

>
>then (logged in as kevin) I did
>ssh remote_IP


This is your problem. ssh will try to use ~/.ssh/id_rsa as
the private key to use by default. If you called your key
kevin, then you'll need to use

ssh -i kevin remote_IP

scott

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com