|Pathologically Eclectic Rubbish Lister|
Net::SSH::Perl doesn't like long commands
Net::SSH::Perl has a history of not being user-friendly.
Fer chrissake just use one of salva's SSH modules - whichever one is right for your OS , and ask if you don't know which one that is.
(salva is far too modest to state that explicitly, but I'm not bound by any such constraints.)
I mean no offence to the current maintainer (yes, it apparently now has one) of Net::SSH::Perl, but a module that contains the word "Perl" in its name yet has so many C-extensions as pre-requisites, is surely trying to sell itself on false pretences.