Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Net::SSH Perl Module - Host Key Verification Failed

Net::SSH Perl Module - Host Key Verification Failed

Net::SSH Perl Module - Host Key Verification Failed


I have 2 Sun systems, 1 Sol8, the other Sol9, both have the same version of ssh, perl, and the PM module is installed on the Solaris 8 server only.  I am trying to login using net::ssh perl module within a script and can not get it working.

I have a problem with my Net::SSH PM failing with the error Host Key Verification failed.

- I ran the ssh-keygen(ssh-keygen -b 1024 -t rsa) to setup rsa keys,
- copied the keys into the authorized_keys file on both systems with both systems keys,
- tested manually if I could login to both systems without a passwd and it works fine.  

- I checked logs for failed ssh attempts but none were logged.
- I looked for ways to debug the script but can not find a way to debug the command "Net::SSH qw(sshopen2)".  

Does anyone know how to debug this and/or know what I am missing in my ssh environment that is causing this?



RE: Net::SSH Perl Module - Host Key Verification Failed

you running this under an interactive user? - clutch.straw=True;

Spend an hour a week on CPAN, helps cure all known programming ailments winky smile

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close