Our application is transferring  data via SCP on a channel and randomly
it will encounter the following error when transferring:

 

Caused by: com.jcraft.jsch.JSchException: session is down

                at com.jcraft.jsch.Channel.connect(Channel.java:185)

                at com.jcraft.jsch.Channel.connect(Channel.java:144)

 

The application then attempts to get a new session using:
jsch.getSession(username, hostname, port);

 

It fails to reconnect with the following error (partial stack trace):

Caused by: com.jcraft.jsch.JSchException: SSH_MSG_DISCONNECT: 2 Protocol
error: expected packet SSH_MSG_USERAUTH_REQUEST, got
SSH_MSG_CHANNEL_OPEN 

                at com.jcraft.jsch.Session.read(Session.java:899)

                at
com.jcraft.jsch.UserAuthNone.start(UserAuthNone.java:85)

                at com.jcraft.jsch.Session.connect(Session.java:350)

                at com.jcraft.jsch.Session.connect(Session.java:154)

 

 

Has anybody encountered a situation and/or error like this.

 

We are using jsch 1.4.3 on windows. 

 

Thanks!

 

Paul Sabatino

Senior Software Engineer

3X Systems

http://www.3x.com <http://www.3x.com/> 

Direct: 614.372-6866

866.478.3131 ext. 313

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

Every year, 43% of computer users lose irreplaceable data due to
irregular, infrequent backups.

 

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to