summaryrefslogtreecommitdiff
path: root/man/man1/openpgp2ssh.1
blob: 62671419488d7129b519a849e8d974385240a6c9 (plain)
  1. .\"  -*- nroff -*-
  2. .Dd $Mdocdate: June 11, 2008 $
  3. .Dt OPENPGP2SSH 1
  4. .Os
  5. .Sh NAME
  6. openpgp2ssh
  7. .Nd translate OpenPGP keys to SSH keys
  8. .Sh SYNOPSIS
  9. .Nm openpgp2ssh < mykey.gpg
  10. .Nm gpg --export $KEYID | openpgp2ssh $KEYID
  11. .Nm gpg --export-secret-key $KEYID | openpgp2ssh $KEYID
  12. .Sh DESCRIPTION
  13. openpgp2ssh takes OpenPGP-formatted RSA and DSA keys on standard
  14. input, and spits out the requested equivalent SSH-style key on
  15. standard output.
  16. If the data on standard input contains only a single key, you can
  17. invoke openpgp2ssh without arguments. If the data on standard input
  18. contains multiple keys (e.g. a primary key and associated subkeys),
  19. you must specify a specific OpenPGP keyid (e.g. CCD2ED94D21739E9) or
  20. fingerprint as the first argument to indicate which key to export.
  21. The keyid must be at least 8 hex characters.
  22. If the input contains an OpenPGP RSA or DSA public key, it will be
  23. converted to the OpenSSH-style single-line keystring, prefixed with
  24. the key type. This format is suitable (with minor alterations) for
  25. insertion into known_hosts files and authorized_keys files.
  26. If the input contains an OpenPGP RSA or DSA secret key, it will be
  27. converted to the equivalent PEM-encoded private key.
  28. Note that the keys produced by this process are stripped of all
  29. identifying information, including certifications, self-signatures,
  30. etc.
  31. openpgp2ssh is part of the
  32. .Xr monkeysphere 1
  33. framework for providing a PKI for SSH.
  34. .Sh EXAMPLES
  35. .Nm gpg --export-secret-key $KEYID | openpgp2ssh $KEYID | ssh-add -c /dev/stdin
  36. This pushes the secret key into the active
  37. .Xr ssh-agent 1 .
  38. Tools (such as
  39. .Xr ssh 1 )
  40. which know how to talk to the
  41. .Xr ssh-agent 1
  42. can now rely on the key.
  43. .Sh AUTHOR
  44. openpgp2ssh and this man page were written by Daniel Kahn Gillmor
  45. <dkg@fifthhorseman.net>.
  46. .Sh BUGS
  47. openpgp2ssh currently only exports into formats used by the OpenSSH.
  48. It should support other key output formats, such as those used by
  49. lsh(1) and putty(1).
  50. Secret key output is currently not passphrase-protected.
  51. This program is not yet implemented, and this man page currently only
  52. describes expected functionality.
  53. .Sh SEE ALSO
  54. .Xr monkeysphere 1 ,
  55. .Xr ssh 1 ,
  56. .Xr monkeysphere-server 8