[% SET CPANEL.CPVAR.dprefix = "../../" %] [% Api2.pre_exec("SSH", "listkeys"); SET listkeys = Api2.exec("SSH", "listkeys", {"types"=>"pub"} ); Api2.post_exec("SSH", "listkeys"); Api2.pre_exec("SSH", "listkeys"); SET list_priv_keys = Api2.exec("SSH", "listkeys", {"types"=>"priv"} ); Api2.post_exec("SSH", "listkeys"); %] [% WRAPPER '_assets/master.html.tt' app_key = 'ssh_access' -%]

[% locale.maketext("Manage SSH Keys") %]

[% locale.maketext("Generate a New Key") %] [% locale.maketext("Import Key") %]

[% locale.maketext("Key Descriptions") %]

[% locale.maketext("The public and private key are similar to a puzzle. They are created together to use during the login/authentication process. The public key resides on the server (the remote location). The private key resides locally on your computer/server. When you attempt to login to a server, the public and private key are compared. If they match, then you will be allowed to login to the server location.") %]

** [% locale.maketext("You can download the private/public keys here and import into [output,url,_1,PuTTY,target,_2] (or other SSH clients) if you prefer using something else for SSH connections. Or, if you have been using PuTTY, you can import the public/private keys by clicking on Import Key. You can also download your key in PuTTY’s ppk format under View/Download.", 'https://go.cpanel.net/putty', '_blank') %]

[% locale.maketext("Public Keys") %]

[% IF listkeys.size %] [% FOREACH keys IN listkeys %] [% END %] [% ELSE %] [% END %]
[% locale.maketext("Name") %] [% locale.maketext("Authorization Status") %] [% locale.maketext("Actions") %]
[% keys.name.html() %] [% keys.authstatus.html() %] [% locale.maketext("Delete") %] [% locale.maketext("View/Download") %] [% locale.maketext("Manage") %]
[% locale.maketext("No Public Keys installed.") %]

[% locale.maketext("[output,strong,NOTE]: If you authorize a key that is identical to other keys, those keys may also become authorized.") %]

[% locale.maketext("Private Keys") %]

[% IF list_priv_keys.size; %] [% FOREACH priv_keys IN list_priv_keys %] [% END %] [% ELSE %] [% END %]
[% locale.maketext("Name") %] [% locale.maketext("Actions") %]
[% priv_keys.name.html() %] [% locale.maketext("Delete") %] [% locale.maketext("View/Download") %]
[% locale.maketext("No Private Keys installed.") %]
[% INCLUDE _assets/return_link.html.tt return_location='../index.html' return_link_text=locale.maketext('Go Back') %]
[% END #wrapper %]