Help for this page

Select Code to Download


  1. or download this
    my $cmd = "/usr/bin/ssh -t -i \$HOME/.ssh/privkey user\@machineC '/usr
    +/bin/ssh -t -l user machineD \"mkdir \$HOME/.ssh;chmod go-w \$HOME &&
    + chmod go-w \$HOME/.ssh && ( echo $public_key ) >>\$HOME/.ssh/authori
    +zed_keys\"'";
    
  2. or download this
    #/usr/bin/ssh -t -i \$HOME/.ssh/privkey user\@machineC '/usr/bin/ssh -
    +t -l user machineD mkdir \\\$HOME/.ssh;chmod go-w \\\$HOME && chmod g
    +o-w \\\$HOME/.ssh && ( echo $public_key ) >>\\\$HOME/.ssh/authorized_
    +keys';
    
  3. or download this
    my $cmd = <<EOF;
    /usr/bin/ssh -t -i \$HOME/.ssh/LeadRNCkey -l usr machineC '/usr/bin/ss
    +h -t -l usr machineD uname -a\\; mkdir \\\$HOME/.ssh\\; chmod go-w \\
    +\$HOME\\; chmod go-w \\\$HOME/.ssh\\; echo \\"$public_key\\\n\\" \\>\
    +\>\\\$HOME/.ssh/authorized_keys'
    EOF