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.
Cpanel::SSH::importkey
This function will import a public key pair
<?cp SSH::importkey(%,name) name=$FORM{'keyname'},key=$FORM{'privkey'} ?>
This example will import a private key and display the key's name.
Copyright 2007 cPanel Inc.