Cpanel::SSH::importkey

This article documents the usage of the Cpanel::SSH::importkey function in relation to the cPanel interface. This tag can be used inside cPanel pages.


SYNOPSIS

Cpanel::SSH::importkey


DESCRIPTION

This function will import a public key pair


VARIABLES

INPUT

pass (string)
Passphrase for the key pair.

name (string)
Name of the key.

privkey
Contents of the private key.

pubkey
Contents of the public key.

OUTPUT

name (string)
Name of the imported key.


EXAMPLES

<?cp SSH::importkey(%,name) name=$FORM{'keyname'},key=$FORM{'privkey'} ?>

This example will import a private key and display the key's name.


COPYRIGHT

Copyright 2007 cPanel Inc.