LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


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

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


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.

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

Rep: Reputation: 31
Excerpt:
Quote:
Originally Posted by cccc View Post
I'm getting this message
Code:
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, 07:51 AM   #3
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

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


Reply



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 07:42 AM
Send commands to ssh horacioemilio Programming 13 12-14-2007 05:06 AM
send email when a certain user login through ssh NordiC Linux - General 1 12-20-2006 08:23 AM
configure terminal to send keepalives for ssh naijaguy Linux - Newbie 3 03-22-2005 04:40 PM
ssh refusing connection Sonny Linux - Security 3 01-24-2002 02:43 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:27 PM.

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