Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-21-2009, 08:04 PM   #1
Senior Member
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 50
blacklisted (see ssh-vulnkey(1)); refusing to send it


I wrote a perl script to transfer a file via SFTP:
#!/usr/bin/perl -w

use strict;
use warnings;
use Net::SFTP;

my $server="";
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";

but I'm getting this message
Connecting to
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.

Last edited by cccc; 07-26-2009 at 08:49 AM.
Old 07-22-2009, 10:24 AM   #2
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
Originally Posted by cccc View Post
I'm getting this message
see ssh-vulnkey(1)
I cannot understand
Quite simple: in a shell, run man ssh-vulnkey to read the man page that explains the issue and the fix. (In short, generate new keys to replace the compromised ones.)

In case you wondered, the (1) refers to section 1 of the manuals (User Commands; here specifically BSD Common Commands); that's the common notation to reference man pages.
Old 07-26-2009, 08:51 AM   #3
Senior Member
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 50
I've deleted old RSA and DSA keys in /root/.ssh and now it works well.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to send popup to GNOME from ssh? Dims Linux - Newbie 6 06-05-2009 08:42 AM
Send commands to ssh horacioemilio Programming 13 12-14-2007 06:06 AM
send email when a certain user login through ssh NordiC Linux - General 1 12-20-2006 09:23 AM
configure terminal to send keepalives for ssh naijaguy Linux - Newbie 3 03-22-2005 05:40 PM
ssh refusing connection Sonny Linux - Security 3 01-24-2002 03:43 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration