PGP2SSH(1)

NAME
pgp2ssh - convert a PGP public key to an SSHv2 key

SYNOPSIS
pgp2ssh [-f -address-family] [-h -hostname] [-p -port] userid ...

DESCRIPTION
The pgp2ssh command retrieves PGP public key information from the key server daemon using the HKP protocol, and converts the PGP public key to a format suitable for use by ssh(1). The hkpd(1) is normally used to serve public key information. The pgp2ssh utility is similar to the hkpc(1) utility in that it retrieves keys in the same way. In addition, pgp2ssh will convert the format of the key.

At the present time, only RSA keys are supported. There is no intention, at the time of writing, to support DSA keys, due to their limitations.

It is quite possible to serve ssh public keys across a network using hkpd(1) to serve the key, and pgp2ssh to retrieve the key using the HKP protocol, and to save the key in ssh format on the remote computer, allowing users to login to the remote computer using ssh(1).

EXIT STATUS
The pgp2ssh utility will return 0 for success, or 1 for failure. Output will be printed on stdout. It can be redirected to a file for use by ssh(1).

SEE ALSO
hkpc(1), hkpd(1), netpgpkeys(1), ssh(1), libnetpgp(3)

STANDARDS
J. Callas, L. Donnerhacke, H. Finney, D. Shaw, R. Thayer, November 2007, RFC 4880, OpenPGP Message Format.

HISTORY
The pgp2ssh command first appeared in NetBSD 6.0.

AUTHORS
Alistair Crooks <agc@NetBSD.org>.