I have a cPanel user, I just created on my new cPanel installation..
But when I try to Import an SSH Public RSA Key I get this:
I took a look in /usr/local/cpanel/logs/error_log I noticed this:
Any help with this issue would be greatly appreciated.. I've been trying to find a solution for a while now, and no luck
Cheers,
Chris
But when I try to Import an SSH Public RSA Key I get this:
Code:
The key named was imported.
[a fatal error or timeout occurred while processing this directive] Invalid filename
I took a look in /usr/local/cpanel/logs/error_log I noticed this:
Code:
[2011-03-11 18:50:46 +0000] warn [ssh::listkeys] Encountered error in ssh::listkeys: Invalid filename
[2011-03-11 18:50:46 +0000] warn [ssh::listkeys] Encountered error in ssh::listkeys: Invalid filename
[2011-03-11 18:51:20 +0000] die [Internal Death while parsing ./frontend/x3/telnet/keys/import.html 26244] Can't locate object method "new" via package "FileHandle" (perhaps you forgot to load "FileHandle"?) at /usr/local/cpanel/Cpanel/FileUtils.pm line 171.
Cpanel::FileUtils::writefile('/home/ts3/.ssh/id_rsa.pub', 'ssh-rsa <removed key>...') called at /usr/local/cpanel/Cpanel/SSH.pm line 1040
Cpanel::SSH::_importkey('passphrase', undef, 'user', 'ts3', 'name', 'id_rsa.pub', 'key', 'ssh-rsa <removed key>...') called at /usr/local/cpanel/Cpanel/SSH.pm line 1076
Cpanel::SSH::api2_importkey('key', 'ssh-rsa <removed key>...', 'name', 'id_rsa.pub') called at (eval 82) line 1
eval '$dataref = [Cpanel::SSH::api2_importkey(%{$rCFG})];' called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 84
Cpanel::Api2::Exec::api2_exec('SSH', 'importkey', 'HASH(0x26b6af0)', 'HASH(0x17ed620)') called at cpanel line 607
main::real_cpexectag('<?cp SSH::importkey($LANG{\'SSHKeyImportText1\'} % $LANG{\'SSHKe...') called at cpanel line 3879
main::dotag_finished_headers(0) called at cpanel line 3704
main::cpanel_parseblock('<cpanel setvar="headerimg=../../images/topmysql.gif">^J<cpanel se...') called at cpanel line 3612
main::cpanel_parse('GLOB(0x22afa70)') called at cpanel line 5121
main::run_standard_mode() called at cpanel line 424
[2011-03-11 18:51:20 +0000] warn [cpanel] Unable to run [Cpanel::SSH::api2_importkey(2/8)]; Bad file descriptor at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 90
Cpanel::Api2::Exec::api2_exec('SSH', 'importkey', HASH(0x26b6af0), HASH(0x17ed620)) called at cpanel line 607
main::real_cpexectag('<?cp SSH::importkey($LANG{\'SSHKeyImportText1\'} % $LANG{\'SSHKeyImportText2\'},name) name=$FORM{\'keyname\'}.pub,key=$FORM{\'pubkey\'} ?>') called at cpanel line 3879
main::dotag_finished_headers(0) called at cpanel line 3704
main::cpanel_parseblock('<cpanel setvar="headerimg=../../images/topmysql.gif">\x0A<cpanel setvar="dprefix=../../">\x0A<cpanel Branding="include(stdheader.html)">\x0A\x0A<style type="text/css">\x0A<?cp Branding::spritelist(.spriteicon_img_mini {float:left;margin-right:5px;background: url\\{leftparenthesis}%\\{rightparenthesis};} %,spriteurl,images::#icon-${img}_mini {background-position\\{colon}0 -${cssposition}px;width\\{colon}${width}px;height\\{colon}${height}px; }:) imgtype=icon,subtype=img,method=scale_60percent,format=png,img=ssh-shell-access ?>\x0A\x0A</style>\x0A<div class="body-content">\x09<div class="h1Title"><div class="spriteicon_img_mini" id="icon-ssh-shell-access_mini"></div><cpanel langprint="SSHImportKey"></div>\x0A\x0A<p>\x0A<?cp SSH::importkey($LANG{\'SSHKeyImportText1\'} % $LANG{\'SSHKeyImportText2\'},name) name=$FORM{\'keyname\'},key=$FORM{\'privkey\'} ?>\x0A<cpanelif $CPERROR{\'ssh\'}>\x0A <cpanel print="$CPERROR{\'ssh\'}">\x0A</cpanelif>\x0A<?cp SSH::importkey($LANG{\'SSHKeyImportText1\'} % $LANG{\'SSHKeyImportText2\'},name) name=$FORM{\'keyname\'}.pub,key=$FORM{\'pubkey\'} ?>\x0A\x0A<cpanelif $CPERROR{\'ssh\'}>\x0A <cpanel print="$CPERROR{\'ssh\'}">\x0A</cpanelif>\x0A\x0A</p>\x0A \x0A<div class="return-link"><a href="index.html">← <cpanel langprint="SSHBack"></a></div>\x0A</div>\x0A<cpanel Branding="include(stdfooter.html)">\x0A') called at cpanel line 3612
main::cpanel_parse(GLOB(0x22afa70)) called at cpanel line 5121
main::run_standard_mode() called at cpanel line 424
[2011-03-11 18:51:20 +0000] warn [ssh::importkey] Encountered error in ssh::importkey: Invalid filename
[2011-03-11 18:52:52 +0000] warn [ssh::listkeys] Encountered error in ssh::listkeys: Invalid filename
[2011-03-11 18:52:52 +0000] warn [ssh::listkeys] Encountered error in ssh::listkeys: Invalid filename
Any help with this issue would be greatly appreciated.. I've been trying to find a solution for a while now, and no luck
Cheers,
Chris
Last edited: