|
NAMEopenpgp2ssh —translate OpenPGP keys to SSH keys
SYNOPSIS
DESCRIPTIONopenpgp2ssh < mykey.gpg takes an OpenPGP-formatted
primary key and associated subkeys on standard input, and spits out the
requested equivalent SSH-style (or PEM-encoded) key on standard output.
If the data on standard input contains no subkeys, you can invoke
If the input contains an OpenPGP RSA public key, it will be converted to the OpenSSH-style single-line keystring, prefixed with the key type (`ssh-rsa'). This format is suitable (with minor alterations) for insertion into known_hosts files and authorized_keys files. If invoked as `openpgp2pem', a PEM-encoded public key will be emitted instead. If invoked as `openpgp2spki', a PEM-encoded subjectPublicKeyInfo (as defined in the X.509 standard) will be emitted instead. If the input contains an OpenPGP RSA secret key, it will be converted to the equivalent PEM-encoded private key.
CAVEATSThe keys produced by this process are stripped of all identifying information, including certifications, self-signatures, etc. This is intentional, since ssh attaches no inherent significance to these features.
EXAMPLESgpg --export-secret-key $KEYID |
openpgp2ssh $KEYID | ssh-add -c
/dev/stdin
This pushes the secret key into the active ssh-agent(1). Tools such as ssh(1) which know how to talk to the ssh-agent(1) can now rely on the key. AUTHORopenpgp2ssh < mykey.gpg and this man page were
written by Daniel Kahn Gillmor <dkg@fifthhorseman.net>.
BUGSopenpgp2ssh < mykey.gpg only works with RSA keys. DSA
keys are the only other key type available in both OpenPGP and SSH, but they
are currently unsupported by this utility.
Secret key output is currently not passphrase-protected.
SEE ALSOpem2openpgp(1), monkeysphere(1), monkeysphere(7), ssh(1), monkeysphere-authentication(8), monkeysphere-host(8)
Visit the GSP FreeBSD Man Page Interface. |