Google Groups Home
Help | Sign in
SSH login with other user's keys
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
rahul  
View profile
 More options May 15, 2:37 am
Newsgroups: comp.unix.misc
From: rahul <rahulsin...@gmail.com>
Date: Wed, 14 May 2008 23:37:38 -0700 (PDT)
Local: Thurs, May 15 2008 2:37 am
Subject: SSH login with other user's keys
I have an account called mdmbuild on my machine that does not have a
password. It's a headless account. I have ssh public and private keys
for the account. The public keys are already there on the machine I
want to log on to.
But the problem is the remote machine is not accepting my private keys
as they were generated on a different machine.

Say keys were generated on saturn and public keys copied to venus. My
mars machine has the private keys but venus won't accept it as it has
public keys generated on saturn. Is there any way I can login on venus
with the keys
I have got? mdmbuild does not have a password. The only way to login
is with the keys.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rahul  
View profile
 More options May 15, 2:41 am
Newsgroups: comp.unix.misc
From: rahul <rahulsin...@gmail.com>
Date: Wed, 14 May 2008 23:41:01 -0700 (PDT)
Local: Thurs, May 15 2008 2:41 am
Subject: Re: SSH login with other user's keys
Below it the error I am getting.

debug1: Trying RSA authentication with key
'/home/mdmbuild/.ssh/vault-identity'
debug1: Remote: Your host 'hostname.com' is not
permitted to use this key for login.
debug1: Server refused our key.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Barry Margolin  
View profile
 More options May 15, 10:36 pm
Newsgroups: comp.unix.misc
From: Barry Margolin <bar...@alum.mit.edu>
Date: Thu, 15 May 2008 22:36:10 -0400
Local: Thurs, May 15 2008 10:36 pm
Subject: Re: SSH login with other user's keys
In article
<368235fa-2308-4f60-907b-4927d3560...@u12g2000prd.googlegroups.com>,

 rahul <rahulsin...@gmail.com> wrote:
> I have an account called mdmbuild on my machine that does not have a
> password. It's a headless account. I have ssh public and private keys
> for the account. The public keys are already there on the machine I
> want to log on to.
> But the problem is the remote machine is not accepting my private keys
> as they were generated on a different machine.

> Say keys were generated on saturn and public keys copied to venus. My
> mars machine has the private keys but venus won't accept it as it has
> public keys generated on saturn. Is there any way I can login on venus
> with the keys
> I have got? mdmbuild does not have a password. The only way to login
> is with the keys.

When you run ssh-keygen, it creates both a public and private key.  You
have to use the private key that was made at the same time as the public
key, because key generation incorporates random data.  Every time you
run ssh-keygen you'll get different keys, even if you enter the same
passphrase, and you can't mix and match them.

--
Barry Margolin, bar...@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rahul  
View profile
 More options May 20, 5:10 am
Newsgroups: comp.unix.misc
From: rahul <rahulsin...@gmail.com>
Date: Tue, 20 May 2008 02:10:15 -0700 (PDT)
Local: Tues, May 20 2008 5:10 am
Subject: Re: SSH login with other user's keys
On May 16, 7:36 am, Barry Margolin <bar...@alum.mit.edu> wrote:

Thanks Barry,
But I have got the matching private keys corresponding to public keys
on the server. But as the keys were not generated on my
host, server is not taking the keys. For the headless accounts, we
have public keys on servers and private key is given to
us for access.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
rahul  
View profile
 More options May 20, 8:28 am
Newsgroups: comp.unix.misc
From: rahul <rahulsin...@gmail.com>
Date: Tue, 20 May 2008 05:28:51 -0700 (PDT)
Local: Tues, May 20 2008 8:28 am
Subject: Re: SSH login with other user's keys
On May 20, 2:10 pm, rahul <rahulsin...@gmail.com> wrote:

I found the problem. The host names are limited to the from= specified
in the authorized_keys file. So, only the host in the from= field can
have the key authentication for the copied public key.
Otherwise, it falls back to password authentication. In my case, the
account has no password. I got my machine name appended to the from
field.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google