Cpanel::SSH::fetchkey

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


SYNOPSIS

Cpanel::SSH::fetchkey


DESCRIPTION

Outputs the contents of a public or private key.


VARIABLES

INPUT

pub (string)
Defines whether the key is public or private. pub=1 denotes a public key.

name (string)
Name of the public or private key.

OUTPUT

user (string)
User that owns the key. (Always the user logged into cPanel if called in cPanel)

key (string)
Name of the public or private key.

name (string)
Name of the public or private key.


EXAMPLES

<?cp SSH::fetchkey(%,key) name=id_dsa,pub=1 ?>

This example will output a public key named id_dsa.


COPYRIGHT

Copyright 2007 cPanel Inc.