On 8/16/07, kilaru rajeev <[EMAIL PROTECTED]> wrote: > Hi Jeff, > > I could able to connect to the remote machine with normall ssh. When I treid > to connect through a perl program it is giving following error. > > *Starting ftp for getting Fund files.Connecting to SFTP Server: tisact.txt > in new of perl mod .. > cfg object :Net::SSH::Perl::Config=HASH(0x10663c): > Received disconnect message: Too many authentication failures for crdadm > at /crd.dev/perl/lib/site_perl/5.6.1/Net/SSH/Perl/AuthMgr.pm line 142 > * > I dont know how to proceed from here. Someone please guide me. snip
Can you ssh from the command line to the other box? Something like ssh [EMAIL PROTECTED] without typing a password? If so then something is wrong with the library or your environment. If you are using encrypted keys you should have a copy of ssh-agent running that will given the ssh connection the unencrypted key, but ssh doesn't know the pid of ssh-agent and must be told what it is with an environmental variable. If the Perl code is running in an environment that does not have this variable set it will fail. Another common problem is that different versions of Unix (and Linux) use different implementations of ssh. This isn't a problem for most things, but they tend to use different formats for the private and public key files. You may have to convert the key generated on one platform to the format expected by another. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/