RE: passphrase/ssh2
From: Mark Senior (Mark.Senior_at_gov.ab.ca)
Date: 08/03/05
- Previous message: Terry Browning: "Re: Effective bandwidth reduction over WAN"
- Maybe in reply to: Michael Mannsberger: "passphrase/ssh2"
- Next in thread: \: "RE: passphrase/ssh2"
- Reply: \: "RE: passphrase/ssh2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 3 Aug 2005 10:17:51 -0600 To: "Michael Mannsberger" <mm450exc@gmail.com>
I'm not sure if you mean, programmatically how you would write code to
do it, or as an admin is there an easy way to do it. In any case, the
ssh-keygen tool in openssh does it via:
ssh-keygen -i -f /path/to/keyfile
From the man page:
-i This option will read an unencrypted private (or public)
key file
in SSH2-compatible format and print an OpenSSH compatible
private
(or public) key to stdout. ssh-keygen also reads the
`SECSH
Public Key File Format'. This option allows importing keys
from
several commercial SSH implementations.
So, from the 'as an admin' perspective, you could probably build a
script around the exit status from such a command. From the
programmatic perspective, the openssh code would presumably be a good
place to look.
Hope that helps.
Mark
> -----Original Message-----
> From: Michael Mannsberger [mailto:mm450exc@gmail.com]
> Sent: August 1, 2005 14:28
> To: secureshell@securityfocus.com
> Subject: passphrase/ssh2
>
> How can I check if a ssh2 key has a passphrase set or not? I
> know the structure of a ssh1 private key but can't find
> anything on ssh2.
>
> -mike
>
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
- Previous message: Terry Browning: "Re: Effective bandwidth reduction over WAN"
- Maybe in reply to: Michael Mannsberger: "passphrase/ssh2"
- Next in thread: \: "RE: passphrase/ssh2"
- Reply: \: "RE: passphrase/ssh2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]