Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Net::SSH2 - Authentication without a password?

Thread Tools

Net::SSH2 - Authentication without a password?

Posts: n/a
I have installed Net::SSH2 installed and use it to connect to 90% of
the networking equipment I need to access. It works great, thank you
to zentara for the suggestion.

However, I'm trying to find a solution for one vendor that decided to
be different from the others.

For arguments sake, we'll call the vendor 'alpha'.

Alpha equipment apparently requires an SSH login name but no password.

When I use SecureCRT to connect to one of the alpha boxes, (using
Keyboard Interactive or Password as the authentication method) I am
prompted for a username. Once I enter the proper username, the SSH2
session is established, a shell is started, and I am then presented
with a new set of userid and password requests which are authenticated
against our RADIUS servers. It never prompts me for a password to
accompany the initial username request. I have confirmed (with the
administrator of this equipment) that it doesn't require a password to
establish the SSH2 session.

I cannot find many examples of Net::SSH2 so I have struggled to find
an answer. While reading through the docs, I have tried various
options including:

$ssh2->auth_password( 'username' ) or die "Unable to login $@ \n";

$ssh2->auth_password( 'username', '' ) or die "Unable to login $@ \n";

$ssh2->auth_keyboard( 'username' ) or die "Unable to login $@ \n";

$ssh2->auth_list( username );
(then checking the value of $ssh->auth_ok

All have failed. I cannot seem to figure out how to emulate the login
process executed by SecureCRT.

Any suggestions would be greatly appreciated.

Reply With Quote

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed Authentication, Status "Unsupported Authentication Algorithm" Rafael Cisco 1 11-26-2004 03:57 PM
Accessing htm files without authentication (forms authentication) Kamil P ASP .Net Security 1 11-10-2004 03:44 PM
ASP.Net Forms authentication with basic authentication popup Brett Porter ASP .Net 2 01-20-2004 02:17 PM
Moving from Baisc Authentication to Forms Authentication raj mandadi ASP .Net 0 12-22-2003 12:16 AM
Forms Authentication, external authentication server, & rerouting to orig. req. URL Andrew Connell ASP .Net 1 10-21-2003 05:41 PM