in reply to Re^3: Net:SSH2 channels
in thread Net:SSH2 channels
Perfect suggestion!! In the code I had
and I was assuming that auth_ok was telling me truth. Not so. As you suggested, I put in an explicit error check on the auth_password and now I get:$ssh2->auth_password($login{user}, $login{password}) ; $ssh2->auth_ok() ;
Now I have to figure out what PUBLICKEY_UNRECOGNIZED means. I think it means that it doesn't recognize the servers key and I need to figure out how to get that "accepted" -- I know I've had to do that in my sftp and ssh clients, I didn't think it'd be a problem with this. Is it worth a bug-report on Net::SSH2 that auth_ok doesn't seem to work?d:\Desktop>sshtest Authentication failed (username/password) (-18 LIBSSH2_ERROR_PUBLICKEY +_UNRECOGNI ZED) at D:\Desktop\sshtest.pl line 13.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Net:SSH2 channels
by syphilis (Archbishop) on Aug 09, 2018 at 11:25 UTC |