Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | RE: passphrase/ssh2 |
|---|---|
| Date: | Wed, 3 Aug 2005 10:17:51 -0600 |
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.
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Effective bandwidth reduction over WAN, Terry Browning |
|---|---|
| Next by Date: | Re: passphrase/ssh2, Michael Mannsberger |
| Previous by Thread: | Re: passphrase/ssh2, Michael Mannsberger |
| Next by Thread: | RE: passphrase/ssh2, \"JC\" |
| Indexes: | [Date] [Thread] [Top] [All Lists] |