Moving private SSH keys to new machine?

This is a discussion on Moving private SSH keys to new machine? within the Linux Security forums, part of the System Security and Security Related category; Can private SSH keys be moved to a different computer? John Reese john_reese@fin-rec.com...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-08-2005
John Reese
 
Posts: n/a
Default Moving private SSH keys to new machine?

Can private SSH keys be moved to a different computer?

John Reese
john_reese@fin-rec.com
Reply With Quote
  #2 (permalink)  
Old 03-08-2005
Jem Berkes
 
Posts: n/a
Default Re: Moving private SSH keys to new machine?

> Can private SSH keys be moved to a different computer?

Assuming you're using OpenSSH, yes. Just copy the appropriate files over
(ssh_host* under etc/ssh)

--
Jem Berkes
Software design for Windows and Linux/Unix-like systems
http://www.sysdesign.ca/
Reply With Quote
  #3 (permalink)  
Old 03-08-2005
John Reese
 
Posts: n/a
Default Re: Moving private SSH keys to new machine?

I realize now that my message was pretty vague. Apologies.

We are bringing a new production server on-line. There are hundreds of SSH
clients with a public key to the old machine; our goal is to move the keys
from the old server to the new one in a manner that is acceptable to the
holders of the public keys.

I have tried the crude method -- I have moved *all* the old keys to the
new server with the same IP as the old server -- but the clients still are
refusing to log on, generating a man-in-the-middle warning.

Any idea how we can get past this?

John Reese

On Tue, 08 Mar 2005 16:07:29 +0000, Jem Berkes wrote:

>> Can private SSH keys be moved to a different computer?

>
> Assuming you're using OpenSSH, yes. Just copy the appropriate files over
> (ssh_host* under etc/ssh)


Reply With Quote
  #4 (permalink)  
Old 03-08-2005
me
 
Posts: n/a
Default Re: Moving private SSH keys to new machine?

John Reese wrote:
> I realize now that my message was pretty vague. Apologies.
>
> We are bringing a new production server on-line. There are hundreds of SSH
> clients with a public key to the old machine; our goal is to move the keys
> from the old server to the new one in a manner that is acceptable to the
> holders of the public keys.
>
> I have tried the crude method -- I have moved *all* the old keys to the
> new server with the same IP as the old server -- but the clients still are
> refusing to log on, generating a man-in-the-middle warning.
>
> Any idea how we can get past this?
>
> John Reese
>
> On Tue, 08 Mar 2005 16:07:29 +0000, Jem Berkes wrote:
>
>
>>>Can private SSH keys be moved to a different computer?

>>
>>Assuming you're using OpenSSH, yes. Just copy the appropriate files over
>>(ssh_host* under etc/ssh)

>
>



Would it be possible to assign the old server's IP to the new server?
I'm assuming it's the change in IP that's triggering the 'Man in the
Middle' warining.

Me.
Reply With Quote
  #5 (permalink)  
Old 03-08-2005
Barton L. Phillips
 
Posts: n/a
Default Re: Moving private SSH keys to new machine?

me wrote:
> John Reese wrote:
>
>> I realize now that my message was pretty vague. Apologies.
>>
>> We are bringing a new production server on-line. There are hundreds of
>> SSH
>> clients with a public key to the old machine; our goal is to move the
>> keys
>> from the old server to the new one in a manner that is acceptable to the
>> holders of the public keys.
>>
>> I have tried the crude method -- I have moved *all* the old keys to the
>> new server with the same IP as the old server -- but the clients still
>> are
>> refusing to log on, generating a man-in-the-middle warning.
>>
>> Any idea how we can get past this?
>>
>> John Reese
>>
>> On Tue, 08 Mar 2005 16:07:29 +0000, Jem Berkes wrote:
>>
>>
>>>> Can private SSH keys be moved to a different computer?
>>>
>>>
>>> Assuming you're using OpenSSH, yes. Just copy the appropriate files
>>> over (ssh_host* under etc/ssh)

This may not be acceptable but all the clients need to do is remove the
old entry from the know_hosts or know_hosts2 file. I know this is
probably not the way you want to solve the problem.
Reply With Quote
  #6 (permalink)  
Old 03-08-2005
John Reese
 
Posts: n/a
Default Re: Moving private SSH keys to new machine?

Thanks for your response. The new server's IP address was the same as the
old machine, so IP alone won't validate the key. I'm guessing that the key
generator incorporates a section from the MAC address, which of course is
different on the two machines. Any ideas?

On Tue, 08 Mar 2005 13:16:55 -0500, me wrote:

> John Reese wrote:
>> I realize now that my message was pretty vague. Apologies.
>>
>> We are bringing a new production server on-line. There are hundreds of SSH
>> clients with a public key to the old machine; our goal is to move the keys
>> from the old server to the new one in a manner that is acceptable to the
>> holders of the public keys.
>>
>> I have tried the crude method -- I have moved *all* the old keys to the
>> new server with the same IP as the old server -- but the clients still are
>> refusing to log on, generating a man-in-the-middle warning.
>>
>> Any idea how we can get past this?
>>
>> John Reese
>>
>> On Tue, 08 Mar 2005 16:07:29 +0000, Jem Berkes wrote:
>>
>>
>>>>Can private SSH keys be moved to a different computer?
>>>
>>>Assuming you're using OpenSSH, yes. Just copy the appropriate files over
>>>(ssh_host* under etc/ssh)

>>
>>

>
>
> Would it be possible to assign the old server's IP to the new server?
> I'm assuming it's the change in IP that's triggering the 'Man in the
> Middle' warining.
>
> Me.


Reply With Quote
  #7 (permalink)  
Old 03-08-2005
John Reese
 
Posts: n/a
Default Re: Moving private SSH keys to new machine?

Yes, this would be my first choice, too, but we have too many clients at
too many remote locations. If there is any way to change one machine
rather than hundreds, that would be the way to go, even if it were
technically more difficult. Any thoughts?

JR

On Tue, 08 Mar 2005 19:37:19 +0000, Barton L. Phillips wrote:

> me wrote:
>> John Reese wrote:
>>
>>> I realize now that my message was pretty vague. Apologies.
>>>
>>> We are bringing a new production server on-line. There are hundreds of
>>> SSH
>>> clients with a public key to the old machine; our goal is to move the
>>> keys
>>> from the old server to the new one in a manner that is acceptable to the
>>> holders of the public keys.
>>>
>>> I have tried the crude method -- I have moved *all* the old keys to the
>>> new server with the same IP as the old server -- but the clients still
>>> are
>>> refusing to log on, generating a man-in-the-middle warning.
>>>
>>> Any idea how we can get past this?
>>>
>>> John Reese
>>>
>>> On Tue, 08 Mar 2005 16:07:29 +0000, Jem Berkes wrote:
>>>
>>>
>>>>> Can private SSH keys be moved to a different computer?
>>>>
>>>>
>>>> Assuming you're using OpenSSH, yes. Just copy the appropriate files
>>>> over (ssh_host* under etc/ssh)

> This may not be acceptable but all the clients need to do is remove the
> old entry from the know_hosts or know_hosts2 file. I know this is
> probably not the way you want to solve the problem.


Reply With Quote
  #8 (permalink)  
Old 03-08-2005
Me Here
 
Posts: n/a
Default Re: Moving private SSH keys to new machine?

John Reese wrote:
> Thanks for your response. The new server's IP address was the same as the
> old machine, so IP alone won't validate the key. I'm guessing that the key
> generator incorporates a section from the MAC address, which of course is
> different on the two machines. Any ideas?
>
> On Tue, 08 Mar 2005 13:16:55 -0500, me wrote:
>
>
>>John Reese wrote:
>>
>>>I realize now that my message was pretty vague. Apologies.
>>>
>>>We are bringing a new production server on-line. There are hundreds of SSH
>>>clients with a public key to the old machine; our goal is to move the keys
>>>from the old server to the new one in a manner that is acceptable to the
>>>holders of the public keys.
>>>
>>>I have tried the crude method -- I have moved *all* the old keys to the
>>>new server with the same IP as the old server -- but the clients still are
>>>refusing to log on, generating a man-in-the-middle warning.
>>>
>>>Any idea how we can get past this?
>>>
>>>John Reese
>>>
>>>On Tue, 08 Mar 2005 16:07:29 +0000, Jem Berkes wrote:
>>>
>>>
>>>
>>>>>Can private SSH keys be moved to a different computer?
>>>>
>>>>Assuming you're using OpenSSH, yes. Just copy the appropriate files over
>>>>(ssh_host* under etc/ssh)
>>>
>>>

>>
>>Would it be possible to assign the old server's IP to the new server?
>>I'm assuming it's the change in IP that's triggering the 'Man in the
>>Middle' warining.
>>
>>Me.

>
>



Mmmmmm, you've probably got onboard ethernet on both machines too,
otherwise you'd have just swapped cards.

I know you can clone MACs with wireless cards, I wonder if you can do
that with standard ethernet cards.....?

Sorry, the only thing I can think of right now.

Me.
Reply With Quote
  #9 (permalink)  
Old 03-08-2005
Kevin
 
Posts: n/a
Default Re: Moving private SSH keys to new machine?

John Reese <john_reese@fin-rec.com> wrote:
> Can private SSH keys be moved to a different computer?


Could you tell us the recipe(s) you used w/o success?

Thx.

--
PLEASE post a SUMMARY of the answer(s) to your question(s)!
Show Windows & Gates to the exit door.
Unless otherwise noted, the statements herein reflect my personal
opinions and not those of any organization with which I may be affiliated.
Reply With Quote
  #10 (permalink)  
Old 03-08-2005
John Reese
 
Posts: n/a
Default Re: Moving private SSH keys to new machine?

I have tried the crude method -- I have moved *all* the old keys to the
new server. (BTW, the new server has the same IP as the old server.) The
clients still are refusing to log on, generating a man-in-the-middle
warning.

Any idea how we can get past this?

On Tue, 08 Mar 2005 21:45:23 +0000, Kevin wrote:

> John Reese <john_reese@fin-rec.com> wrote:
>> Can private SSH keys be moved to a different computer?

>
> Could you tell us the recipe(s) you used w/o success?
>
> Thx.


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:59 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0