kiranhegde264 / ganymed-ssh-2

Automatically exported from code.google.com/p/ganymed-ssh-2
Other
0 stars 0 forks source link

There is no provision to send SSH_MSG_DISCONNECT message to server #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. login to session
2. close the session 
3.

What is the expected output? What do you see instead?
SSH_MSG_DISCONNECT is expected at server side to confirm the client connection 
close

What version of the product are you using? On what operating system?
210 and Linux 

Please provide any additional information below.

SSH_MSG_DISCONNECT is declared in the Packets.java class and never used in 
Session.

Original issue reported on code.google.com by venuka...@gmail.com on 10 Jun 2013 at 11:38

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Everything works as expected.

SSH_MSG_DISCONNECT will never be sent when a session is being closed, due to 
the fact that the message has no relation to sessions (this message can be used 
to inform the other party when shutting down the _whole_ SSH connection). When 
closing a session, the software sends a SSH_MSG_CHANNEL_CLOSE (see RFC4254, 
section 5.3, "Closing a Channel").

SSH_MSG_DISCONNECT is declared in Packets.java and correctly used in the 
TransportManager code, simply call Connection.close() and the message will be 
sent.

Original comment by cleondris on 10 Jun 2013 at 3:27

GoogleCodeExporter commented 8 years ago

Original comment by cleondris on 10 Jun 2013 at 3:31

GoogleCodeExporter commented 8 years ago
Thanks for the information. 

Original comment by venuka...@gmail.com on 11 Jun 2013 at 5:42