my $sftp = $ssh->sftp() or die "Can't create sftp: " . $ssh->error;