• Support
  • Articles
  • Resources
  • Products

Unexpected SSH2 message(2) on current stage(1)

Moderator: boris

17 postsPage 1 of 1

diaconom
Newbie

Posts:
10
Joined: Wed Feb 02, 2005 9:40 am
by diaconom » Thu Mar 03, 2005 3:11 am
Hello,

I've tried the latest version of TeraTerm Pro and still have the following error in the SSH log !

Initiating SSH session at Thu Mar 03 12:00:20 2005
Received server prologue string: SSH-2.0-3.2.0 SSH Secure Shell Tru64 UNIX
Unexpected SSH2 message(2) on current stage(1)
Terminating SSH session...

Any idea if this will be fixed soon ? Is this maybe an issue with HP Unix ?

Both SecureNetTerm-3.1 and WinSCP can connect correctly to the same server - see log files below.

I've also noticed that TeraTerm from Ayera http://www.ayera.com/teraterm/ can connect correctly to the server but this client seems to have a buffer issue and keystrokes need to be pressed to continue with a screen refresh etc...

So since the TeraTerm from Ayera can connect to the server I think the problem is not with the server.

Does anyone have any idea - please help ?

------------------------------------------------

Client ID: SecureNetTerm-3.1
Server ID: SSH-2.0-3.2.0 SSH Secure Shell Tru64 UNIX
Using protocol: 2.0
HMAC: hmac-sha1
Host ciphers: aes128-cbc,3des-cbc,twofish128-cbc,cast128-cbc,twofish-cbc,blowfish-cbc,aes192-cbc,aes256-cbc,twofish192-cbc,twofish256-cbc,arcfour
Encryption: aes256-cbc
Authentication: User '*******', using password
Compression: Upstream none
Compression: Downstream none



. 2005-03-03 10:24:40.867 Server version: SSH-2.0-3.2.0 SSH Secure Shell Tru64 UNIX
. 2005-03-03 10:24:40.867 We claim version: SSH-2.0-WinSCP_release_3.7.4
. 2005-03-03 10:24:40.867 Using SSH protocol version 2
. 2005-03-03 10:24:41.039 Using Diffie-Hellman with standard group "group1"
. 2005-03-03 10:24:41.039 Doing Diffie-Hellman key exchange
. 2005-03-03 10:24:41.523 Host key fingerprint is:
. 2005-03-03 10:24:41.523 ssh-dss 1024 1d:c7:7b:**:**:**:**:**:**:
. 2005-03-03 10:24:41.523 Initialised AES-256 client->server encryption
. 2005-03-03 10:24:41.523 Initialised HMAC-SHA1 client->server MAC algorithm
. 2005-03-03 10:24:41.680 Initialised AES-256 server->client encryption
. 2005-03-03 10:24:41.680 Initialised HMAC-SHA1 server->client MAC algorithm
! 2005-03-03 10:24:41.867 Using username "*******".
. 2005-03-03 10:24:42.086 Pageant is running. Requesting keys.
. 2005-03-03 10:24:42.086 Pageant has 0 SSH2 keys
. 2005-03-03 10:24:42.086 Session password prompt (*****@***********'s password: )
. 2005-03-03 10:24:42.086 Using stored password.
. 2005-03-03 10:24:42.086 Sent password
. 2005-03-03 10:24:42.258 Access granted
. 2005-03-03 10:24:42.414 Opened channel for session
. 2005-03-03 10:24:42.586 Started a shell/command

 

Yutaka Hirata
TeraTerm Developer

Posts:
609
Joined: Wed Jan 12, 2005 2:35 pm
by Yutaka Hirata » Thu Mar 03, 2005 1:40 pm
Hello,

I uploaded TeraTerm adding Tru64 UNIX workground. You are asked to testing this archive on your enviroment.

http://sleep.mat-yan.jp/~yutaka/windows ... 12pre3.zip

Thank you for your feedback.
Best regards, Yutaka Hirata
(yutakakn at gmail.com)
http://hp.vector.co.jp/authors/VA013320/
diaconom
Newbie

Posts:
10
Joined: Wed Feb 02, 2005 9:40 am
by diaconom » Fri Mar 04, 2005 1:43 am
Hirata-san,

Thanks for your support and for trying to solve this.

Unfortunately the update did not solve the problem but Tera seems to move ahead to the next stage now.

Please see logs below:

Ver: 4.11 and below:
Initiating SSH session at Fri Mar 04 10:14:42 2005
Received server prologue string: SSH-2.0-3.2.0 SSH Secure Shell Tru64 UNIX
Unexpected SSH2 message(2) on current stage(1)
Terminating SSH session...


Ver: 4.12 (pre3)
Initiating SSH session at Fri Mar 04 10:17:12 2005
Received server prologue string: SSH-2.0-3.2.0 SSH Secure Shell Tru64 UNIX
Unexpected SSH2 message(2) on current stage(2)
Terminating SSH session...

Thanks and regards.

 

Yutaka Hirata
TeraTerm Developer

Posts:
609
Joined: Wed Jan 12, 2005 2:35 pm
by Yutaka Hirata » Sat Mar 05, 2005 10:30 am
Hello,

It is a good news.
I added more workground in TeraTerm in the following archive:
Please tell me the result of your testing.

http://sleep.mat-yan.jp/~yutaka/windows ... 12pre4.zip
Best regards, Yutaka Hirata
(yutakakn at gmail.com)
http://hp.vector.co.jp/authors/VA013320/
diaconom
Newbie

Posts:
10
Joined: Wed Feb 02, 2005 9:40 am
by diaconom » Sun Mar 06, 2005 10:55 am
Hirata-san,

Thanks for your new update & support trying to solve this.

TeraTerm seems to move a bit further ahead with this latest version.

Please see logs below:

Ver: 4.11 and below:
Initiating SSH session at Fri Mar 04 10:14:42 2005
Received server prologue string: SSH-2.0-3.2.0 SSH Secure Shell Tru64 UNIX
Unexpected SSH2 message(2) on current stage(1)
Terminating SSH session...

Ver: 4.12 (pre3)
Initiating SSH session at Fri Mar 04 10:17:12 2005
Received server prologue string: SSH-2.0-3.2.0 SSH Secure Shell Tru64 UNIX
Unexpected SSH2 message(2) on current stage(2)
Terminating SSH session...

Ver: 4.12 (pre4)
Initiating SSH session at Sun Mar 06 19:48:58 2005
Received server prologue string: SSH-2.0-3.2.0 SSH Secure Shell Tru64 UNIX
key verify error @ handle_SSH2_dh_kex_reply()
Terminating SSH session...

Thanks and regards.

Miguel/
p.s. seems like the problem is now similar to: http://logmett.com/forum/viewtopic.php?t=14

 

Yutaka Hirata
TeraTerm Developer

Posts:
609
Joined: Wed Jan 12, 2005 2:35 pm
by Yutaka Hirata » Sun Mar 06, 2005 2:47 pm
Hello,

I uploaded the archive that skips key verify checking.
Please test by using it.

http://sleep.mat-yan.jp/~yutaka/windows ... 12pre4.zip
Best regards, Yutaka Hirata
(yutakakn at gmail.com)
http://hp.vector.co.jp/authors/VA013320/
diaconom
Newbie

Posts:
10
Joined: Wed Feb 02, 2005 9:40 am
by diaconom » Mon Mar 07, 2005 1:13 am
Hirata-san,

Did you mean ....pre5 ?

-> http://sleep.mat-yan.jp/~yutaka/windows ... 12pre4.zip

I d/led and tested ....pre5.zip, following find the ssh log. This time the error is after I enter username and password than enter.

Initiating SSH session at Mon Mar 07 10:09:51 2005
Received server prologue string: SSH-2.0-3.2.0 SSH Secure Shell Tru64 UNIX
Server reports supported authentication method mask = 12
Entering secure mode
Oversized packet received from server; connection will close.
Terminating SSH session...

Thanks again,

Miguel/

 

Yutaka Hirata
TeraTerm Developer

Posts:
609
Joined: Wed Jan 12, 2005 2:35 pm
by Yutaka Hirata » Mon Mar 07, 2005 12:04 pm
Hi,

Thank you for your testing.
I think that I need more information to solving this problem.
Now I am implementing SSH logging mechanism in TeraTerm(TTSSH).
Please wait a moment.
Best regards, Yutaka Hirata
(yutakakn at gmail.com)
http://hp.vector.co.jp/authors/VA013320/

 

Yutaka Hirata
TeraTerm Developer

Posts:
609
Joined: Wed Jan 12, 2005 2:35 pm
by Yutaka Hirata » Mon Mar 07, 2005 3:28 pm
Hello,

I added SSH logging function to TeraTerm(TTSSH) in the following archive:
You are asked to use this TeraTerm and send 'ssh2dump.log' file to me.

http://sleep.mat-yan.jp/~yutaka/windows ... 12pre6.zip

my e-mail: yutakakn at mail.goo.ne.jp
Best regards, Yutaka Hirata
(yutakakn at gmail.com)
http://hp.vector.co.jp/authors/VA013320/
diaconom
Newbie

Posts:
10
Joined: Wed Feb 02, 2005 9:40 am
by diaconom » Tue Mar 08, 2005 4:27 am

 

boris
Moderator, LogMeTT and TTLEditor developer

Posts:
1618
Joined: Sat Jan 08, 2005 2:52 pm
by boris » Tue Mar 08, 2005 12:25 pm
Hi Miguel,

Try downloading again. It worked for me.
Thanks.
Best regards,
Boris
diaconom
Newbie

Posts:
10
Joined: Wed Feb 02, 2005 9:40 am
by diaconom » Wed Mar 09, 2005 1:27 am
Hirata-san,

Please find the logs as you requested in your email.

Please note that as from pre6 the Key Verify Error is back - only pre5 worked beyond the Key verify Error but errored out with an oversized packet as can be seen below:

-> Pre5: TTSSH.LOG

Initiating SSH session at Wed Mar 09 09:51:17 2005
Received server prologue string: SSH-2.0-3.2.0 SSH Secure Shell Tru64 UNIX
Server reports supported authentication method mask = 12
Entering secure mode
Oversized packet received from server; connection will close.
Terminating SSH session...


-> Pre6: TTSSH.LOG

Initiating SSH session at Wed Mar 09 10:02:31 2005
Received server prologue string: SSH-2.0-3.2.0 SSH Secure Shell Tru64 UNIX
key verify error @ handle_SSH2_dh_kex_reply()
Terminating SSH session...


-> Pre6: ssh2dump.log sent to email.

-> Pre7: TTSSH.LOG

Initiating SSH session at Wed Mar 09 10:05:15 2005
Received server prologue string: SSH-2.0-3.2.0 SSH Secure Shell Tru64 UNIX
key verify error @ handle_SSH2_dh_kex_reply()
Terminating SSH session...

-> Pre7: ssh2dump-pre7.log sent to email.

Boris: after you sent the email I checked site again and it worked ;) must have been only temporary down.

 

Yutaka Hirata
TeraTerm Developer

Posts:
609
Joined: Wed Jan 12, 2005 2:35 pm
by Yutaka Hirata » Wed Mar 09, 2005 2:17 pm
Hi,

I found the bug of this problem. I fixed TeraTerm in the following archive:

http://sleep.mat-yan.jp/~yutaka/windows ... 12pre7.zip
Best regards, Yutaka Hirata
(yutakakn at gmail.com)
http://hp.vector.co.jp/authors/VA013320/
diaconom
Newbie

Posts:
10
Joined: Wed Feb 02, 2005 9:40 am
by diaconom » Thu Mar 10, 2005 1:45 am
Hi Hirata-san,

I guess you must have meant pre8 not pre7 ;)

-> http://sleep.mat-yan.jp/~yutaka/windows ... 12pre8.zip

Pre8 can SSH correctly to our Unix Server OK :D Thanks for getting this to work.

I've found another different bug in pre8 :wink: -> If the first password entered is incorrect and than the correct password is supplied, TTSSH bombs out with an error please find log below:

-Good password:
Initiating SSH session at Thu Mar 10 10:31:16 2005
Received server prologue string: SSH-2.0-3.2.0 SSH Secure Shell Tru64 UNIX
Server reports supported authentication method mask = 12
Entering secure mode
Terminating SSH session...

-First password incorrect/2nd password correct:
Initiating SSH session at Thu Mar 10 10:33:26 2005
Received server prologue string: SSH-2.0-3.2.0 SSH Secure Shell Tru64 UNIX
Server reports supported authentication method mask = 12
Entering secure mode
Unexpected SSH2 message(1) on current stage(4)
Server disconnected with message 'Protocol error: packet 5 in interactive'.
Terminating SSH session...

Regards,

Miguel/

 

Yutaka Hirata
TeraTerm Developer

Posts:
609
Joined: Wed Jan 12, 2005 2:35 pm
by Yutaka Hirata » Thu Mar 10, 2005 1:49 pm
Hello diaconom,

I am glad that TeraTerm can login to Tru64 UNIX. Thank you for your testing.

By the way,

Unexpected SSH2 message(1) on current stage(4)
Server disconnected with message 'Protocol error: packet 5 in interactive'.


This is the reason that TeraTerm(TTSSH) re-sends SSH2_MSG_SERVICE_REQUEST(packet 5) to server if user login is failed. So I did to not re-sending this message in the following archive:

http://sleep.mat-yan.jp/~yutaka/windows ... 12pre9.zip
Best regards, Yutaka Hirata
(yutakakn at gmail.com)
http://hp.vector.co.jp/authors/VA013320/

 

Guest 2
by Guest 2 » Sun Mar 20, 2005 7:34 pm
I am the person who has problem with SSH access to the NetScreen device. With 4.12pre9, I got further:

"Unexpected SSH2 message(100) on current stage(6)"

I am not sure how I can turn on the TTSSH.log to help with the debugging. Please advise. Thank you.
trankilou
by trankilou » Thu Mar 24, 2005 11:39 am
Hi,

I have the same problem than you. I got 5.02 on the NS208 and i have the same error message
Display posts from previous:
Sort by:

17 postsPage 1 of 1

Users browsing this forum: No registered users
cron