Networking Forums

Networking Forums > Computer Networking > Linux Networking > ssh security question

Reply
Thread Tools Display Modes

ssh security question

 
 
General Schvantzkoph
Guest
Posts: n/a

 
      11-14-2011, 06:15 PM
I just regenerated the keys on one of my F14 systems. I am still able to
access systems which don't have the new public key in their
authorized_keys file. The one thing I did differently this time was that I
did an ssh-add after I regenerated the keys. I did the ssh-add because
putting the new public key into the authorized_keys files of my other
systems wasn't sufficient to give me access. After the ssh-add I could
access the other systems, however I could also access systems that don't
have the new authorized_keys file.

Does ssh-add keep the old keys in the authentication agent as well as the
new key? This would negate the value of changing keys if true.


 
Reply With Quote
 
 
 
 
Jorgen Grahn
Guest
Posts: n/a

 
      11-14-2011, 07:02 PM
On Mon, 2011-11-14, General Schvantzkoph wrote:
....
> Does ssh-add keep the old keys in the authentication agent as well as the
> new key?


Ask your agent: ssh-add -l

> This would negate the value of changing keys if true.


If you delete your old key and plan to keep the agent running for a
long time, you should probably remove the old key from the agent too,
yes. Once again, use ssh-add to do that.

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
 
Reply With Quote
 
Richard Kettlewell
Guest
Posts: n/a

 
      11-14-2011, 08:05 PM
General Schvantzkoph <(E-Mail Removed)> writes:
> I just regenerated the keys on one of my F14 systems. I am still able to
> access systems which don't have the new public key in their
> authorized_keys file. The one thing I did differently this time was that I
> did an ssh-add after I regenerated the keys. I did the ssh-add because
> putting the new public key into the authorized_keys files of my other
> systems wasn't sufficient to give me access. After the ssh-add I could
> access the other systems, however I could also access systems that don't
> have the new authorized_keys file.
>
> Does ssh-add keep the old keys in the authentication agent as well as the
> new key? This would negate the value of changing keys if true.


I disagree. If you want to revoke the old key, you need to remove its
public half from all the authorized_keys files that list it.

--
http://www.greenend.org.uk/rjk/
 
Reply With Quote
 
David Schwartz
Guest
Posts: n/a

 
      12-01-2011, 09:37 PM
On Nov 14, 11:15*am, General Schvantzkoph <schvantzk...@yahoo.com>
wrote:

> Does ssh-add keep the old keys in the authentication agent as well as the
> new key? This would negate the value of changing keys if true.


There's no point in changing keys. The point is in changing *locks*.
Sure, if you change the locks on your back door, there's no security
advantage to throwing away the key to your front door. But if you
change *locks* so that only a new key is accepted *by* *the* *lock*,
then there's a security advantage.

Throwing away a key conveys no security advantage. That's is correct.

DS
 
Reply With Quote
 
 
 
Reply

Thread Tools
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
security question Mr.Jason Linux Networking 2 06-05-2005 10:39 PM
Security question R D S Home Networking 10 05-04-2005 09:29 PM
Security question Ronald Hands Wireless Internet 1 07-04-2004 11:40 AM
Security Question BudMan Wireless Internet 1 11-28-2003 12:16 AM
Security and WPA question TheMachineRNC Wireless Internet 6 11-10-2003 01:40 AM



1 2 3 4 5 6 7 8 9 10 11