Hello Monks,
I am trying to do sftp from command line. The problem is the session becomes interactive , and I want to make it non interactive to enter the password and drop a file.
Is there any way this can be done ?
Currently I am doing
my $result = `sftp $userName\@$url `;
But this prompts for user password. Is there any way this can be done in one go ?
Also I want to drop a file to the connected server once connectivity is established and then disconnect from sftp
I am not able to install Net::SFTP module...its throwing 'Can't locate Net/SSH/Perl/Buffer.pm' even though I tried installing it...
Any help will be appreciated