[JSch-users] SSH Protocol error when trying to reconnect a session
Status: Alpha
Brought to you by:
ymnk
|
From: Paul S. <Pau...@3x...> - 2011-01-07 17:03:10
|
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.
|