#Send files back to Server A my $sftp = $ssh->exec("sftp username\@remote host"); my $pass = $ssh->exec("password"); My debug log tells me at this point tells me that I have a sftp prompt. But the sftp prompt wont except my next command. my $mput = $ssh->send("mput *.tar")