SSHTools Knowledgebase
Information and FAQs about SSHTools products
  
Search  
   
Browse by Category
SSHTools Knowledgebase .: J2SSH Maverick .: Known Issues .: Exceptions after or during an operation on a Solaris server

Exceptions after or during an operation on a Solaris server

Thedefault SSH server shipped with Solaris 9 does not operate as excepted when opening multiple session channels over the SSH2 protocol.

Although the SSH2 protocol supports concurrent multple sessions, when connecing to these 'broken' servers the first session will be opened correctly but after the first session has been closed the server silently disconnects the connection. The next call to open a session, or perform any form of socket operation will result in an exception.

In order to workaround this server problem we advise that you open the first session channel and initialize it by starting the users shell, leaving it open for the duration of the connection. This enables multiple sessions to operate in the correct manner since the first session never gets closed allowing the server to operate as expected.

// Create a open session and forget about it
SshSession solarisWorkaround = ssh.openSessionChannel();
solarisWorkaround.startShell();

// Now create your real session

SshSession session = ssh.openSessionChannel();


How helpful was this article to you?

User Comments

Add Comment
No comments have been posted.


powered by Lore
© 2008 SSHTools Ltd. All Rights Reserved