The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ssh public/private Keys richo king UNIX for Dummies Questions & Answers 2 03-13-2008 06:34 PM
Setting Up public key on Windows for ssh/scp dennis.jacob UNIX for Advanced & Expert Users 3 07-04-2007 07:49 AM
SSH Public key method roshanjain2 Shell Programming and Scripting 1 02-14-2007 05:47 AM
Using Public key in Shell scirpt LochanM Shell Programming and Scripting 1 07-11-2006 09:33 AM
ssh public keys ghost01 UNIX for Dummies Questions & Answers 1 06-30-2006 02:59 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-21-2007
rahulrathod rahulrathod is offline
Registered User
  
 

Join Date: Sep 2004
Location: Mumbai-India
Posts: 158
SSH - Public key

When should one have to generate a public key on a Server when the public key is already created and used by other clients?

Thanks,
Rahul.
  #2 (permalink)  
Old 05-22-2007
encrypted's Avatar
encrypted encrypted is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2004
Location: Oslo, Norway
Posts: 219
I assume you are asking the question:
"Why should one have to generate a public key on a Server when the public key is already created and used by other clients?"

The reason behind is that the set of public-private keys are unique for each host and in order that the "server" communicates to the "client" on ssh we need to generate this unique public key which when copied onto the "clients"
would able to authenticate the "server".

enc.
  #3 (permalink)  
Old 05-22-2007
rahulrathod rahulrathod is offline
Registered User
  
 

Join Date: Sep 2004
Location: Mumbai-India
Posts: 158
Quote:
The reason behind is that the set of public-private keys are unique for each host and in order that the "server" communicates to the "client" on ssh we need to generate this unique public key which when copied onto the "clients"
would able to authenticate the "server".
But my question was, if we already have a unique public-private key pair, would ne need to generate a new public key on the server?
Maybe, if the key pair has stopped working due to some reason?

Thanks,
Rahul.
  #4 (permalink)  
Old 05-22-2007
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
The key pair should not 'stop working'. If a previously working key-based authentication has stopped working, it is probably the result of some file/directory permissions change rather than a corruption of the key-pair.

You could always try generating a new key-pair, but there is a good chance that it won't work either.
  #5 (permalink)  
Old 05-22-2007
encrypted's Avatar
encrypted encrypted is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2004
Location: Oslo, Norway
Posts: 219
"Corruption" of the public-private key set can occour if somehow the key string gets modified. This may typically happen if you have copied it from a DOS based machine or if the key string is not in one single line continuation and is spread over multiple lines.
However, if you intend to generate the key pair on the server again you will need to copy the public key again onto the clients and remove the old public key (typically in .authorized_keys file).

HTH
enc.
  #6 (permalink)  
Old 05-22-2007
rahulrathod rahulrathod is offline
Registered User
  
 

Join Date: Sep 2004
Location: Mumbai-India
Posts: 158
Thanks.

Could there be some other possible reasons as well other than the public key string getting modified?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate 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

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




All times are GMT -4. The time now is 07:25 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0