hi
I wrote a perl script to transfer a file via SFTP:
Code:
#!/usr/bin/perl -w
use strict;
use warnings;
use Net::SFTP;
my $server="192.168.0.12";
my $user="sftpuser";
my %args = (user => "$user", ssh_args => []);
$args{debug} = 1;
$args{user} = "sftpuser";
my $file="TEST.CSV";
my $sftp=Net::SFTP->new($server, %args) or die "could not open connection to $server\n";
$sftp->put($file, $file) or die "could not upload a file\n";
exit;
but I'm getting this message
Code:
Connecting to 192.168.0.12...
Public key f7:40:e6:54:a3:fc:0b:ad:3d:b4:g2:ba:3a:c2:b4:9c blacklisted (see ssh-vulnkey(1)); refusing to send it
I cannot understand, Public Key from my machine was installed on the remote server.