[Ssh-sftp-perl-users] Problems with perl sftp after migration to Centos 4.2
Brought to you by:
dbrobins
From: Rick R. <ric...@we...> - 2006-01-20 22:53:41
|
Hi, I'm in the process of moving some scripts from an old Redhat Enterprise Linux 3.0 server to a more modern CentOS 4.2 server. I used the CPAN module to install Net::SFTP (along with Net::SSH::Perl and yada yada yada), and unfortunately, i cannot get my scripts to work. This particular perl script runs by a specific user who has ssh keys set up to automatically log in to a remote server to do file transfers. I have verified that I can use command line ssh and sftp to connect to the remote server. However, when I attempt to use my perl script to handle the work, it errors while making the connection. Basically, the following line: my $sftp = Net::SFTP->new($hostname) or error_exit("Unable to connect to $hostname via Net::SFTP"); causes the script to hang for a minute or so and then results in the following error message: Connection closed by remote host. at /usr/lib/perl5/site_perl/5.8.5/Net/SSH/Perl/AuthMgr.pm line 43 Can anyone help me? Thanks. Rick |