#!/usr/bin/perl use strict; use warnings; use Data::Dumper; use Net::SSH::Perl; my $host = '192.168.x.x'; my $user = 'user'; my $pw = 'pass'; my $ssh = Net::SSH::Perl->new($host); $ssh->login($user, $pw); ## THIS SECTION FAILS ## $ssh->cmd("cd /var/tmp"); $ssh->cmd("wget -c -np -r -nH --cut-dirs=1 --reject \"index.html*\" http://myURL.com/patch/126546-07/"); ########################