I upgraded my SSH Server to Openssh 7.1p1 to overcome security vulnerabilities. But now my perl scripts using Net::SSH have stopped working and they give a Protocol Error as follow:
Protocol error: expected packet type 91, got 80 at /auto/share/perl/5.8.6/lib/site_perl/5.8.6/Net/SSH/Perl/Packet.pm line 222
/
Here is the complete debug trace:
: Reading configuration data /etc/ssh_config
: Allocated local port 1023.
: Connecting to 10.98.109.105, port 22.
: Remote version string: SSH-2.0-OpenSSH_7.1
: Remote protocol version 2.0, remote software version OpenSSH_7.1
: Net::SSH::Perl Version 1.42, protocol version 2.0.
: No compat match: OpenSSH_7.1
: Connection established.
: Sent key-exchange init (KEXINIT), wait response.
: Algorithms, c->s: 3des-cbc hmac-sha1 none
: Algorithms, s->c: 3des-cbc hmac-sha1 none
: Entering Diffie-Hellman Group 1 key exchange.
: Sent DH public key, waiting for reply.
: Received host key, type 'ssh-rsa'.
: Host '10.98.109.105' is known and matches the host key.
: Computing shared secret key.
: Verifying server signature.
: Send NEWKEYS.
: Waiting for NEWKEYS message.
: Enabling encryption/MAC/compression.
: Sending request for user-authentication service.
: Service accepted: ssh-userauth.
: Trying empty user-authentication request.
: Authentication methods that can continue: publickey,password,keyboar
+d-interactive.
: Next method to try is publickey.
: Next method to try is password.
: Trying password authentication.
: Login completed, opening dummy shell channel.
: channel 0: new [client-session]
: Requesting channel_open for channel 0.
Protocol error: expected packet type 91, got 80 at /auto/share/perl/5.
+8.6/lib/site_perl/5.8.6/Net/SSH/Perl/Packet.pm line 222
/
Can someone please help how to resolve this error?
Thanks!
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.