## Connecting to SFTP server print "\n Connecting to SFTP Server \n"; my $sftp = Net::SFTP::Foreign->new(host => $url, user => $userName, password => $password, more => [-o => 'StrictHostKeyChecking no'] ); $sftp->die_on_error("unable to connect to remote host");