ssh-keygen can't recognize its own keys?

Markus Friedl markus at openbsd.org
Mon Oct 22 18:40:41 EST 2001


fingerprinting works only for public key files.

try
	ssh-keygen -l -f ~/.ssh/id_rsa.pub
	

On Mon, Oct 22, 2001 at 02:14:57AM -0400, Phil Edwards wrote:
> I'm trying to move from SSH1 to OpenSSH 2.9.9p2, under Solaris 8.  Initial
> setup and testing seems to work...  including the generation of a new
> RSA key.  The key was created with "ssh-keygen -t rsa" and a passphrase;
> nothing unusual.
> 
> I can SSH between machines, both running 2.9.9p2, and debug messages show
> that this file is being correctly read (I think).  It prompts me for the
> passphrase, and all is well.
> 
> But ssh-keygen can't list the fingerprints of the key it just created:
> 
>     % ssh-keygen -l -f ~/.ssh/id_rsa 
>     /[...long path elided...]/.ssh/id_rsa is not a valid key file.
>     % 
> 
> Huh?  I can use "ssh-keygen -y" on this same file, and after entering the
> passphrase, the public key is correctly printed.  What's up?
> 
> 
> Please cc me on replies; subscribing is going badly for me for other reasons.
> 
> Much thanks for any tips,
> Phil
> 
> -- 
> If ye love wealth greater than liberty, the tranquility of servitude greater
> than the animating contest for freedom, go home and leave us in peace.  We seek
> not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
> and may posterity forget that ye were our countrymen.            - Samuel Adams



More information about the openssh-unix-dev mailing list