aarthit 2014
2014-04-10 13:28:23 UTC
Hi All,
We are using Jsch-0.1.51 for establishing SSH sessions with our product. We
face the following issue:
The shell hangs and we are not able to enter any commands or text in the
screen.
We tested the following scenarios and these are our observations:
S/No
OS/target
SSH version
SSH server stack
Result
1
Scientific Linux release 6.0
1.5
Openssh 5.3
SSH session establishment fails with the message âInvalid serverâs version
stringâ
2
Scientific Linux release 6.4
1.5
OpenSSH 5.3
SSH session establishment fails with the message âInvalid serverâs version
stringâ
3
Linux-CentOS release 5.5
2.0
OpenSSH 4.3
Authentication succeeds and session gets established. The SSH shell prompt
is also received.
The session freezes there and doesnât work.
4
Scientific Linux 6.0
2.0
Libssh 0.6.1
Authentication succeeds and the session is established the shell prompt is
also received but the session freezes.
For the above 1st 3 cases The establishment of the SSH session is not
consistent ,out of 10 trials we could see only twice the session is getting
established all the other attempts resulted in a failure.
The 4th case did not give us a successful session In any of the instances.
In the 1st two cases we changed the version to 2 and checked and in that we
see the result that session gets established but freezes.
This problem of session hang is consistent when the client is run from a
windows XP machine running with java version like
java version "1.6.0_20" . java version "1.6.0_01" .
When run from a windows 7 PC with java version "1.6.0_22" we see out of 10
times we see 2 times the session gets established and other times it is not
getting established.
Kindly let us know , why do we see the discrepancy in establishing the
sessions. And most of the times we are not seeing a successful shell. Do we
have to change any settings in the jsch config file. Or any other
modifications has to be done. Kindly let us know if any solution is
available for this and the reason for the above behavior
Thanks
Aarthi
We are using Jsch-0.1.51 for establishing SSH sessions with our product. We
face the following issue:
The shell hangs and we are not able to enter any commands or text in the
screen.
We tested the following scenarios and these are our observations:
S/No
OS/target
SSH version
SSH server stack
Result
1
Scientific Linux release 6.0
1.5
Openssh 5.3
SSH session establishment fails with the message âInvalid serverâs version
stringâ
2
Scientific Linux release 6.4
1.5
OpenSSH 5.3
SSH session establishment fails with the message âInvalid serverâs version
stringâ
3
Linux-CentOS release 5.5
2.0
OpenSSH 4.3
Authentication succeeds and session gets established. The SSH shell prompt
is also received.
The session freezes there and doesnât work.
4
Scientific Linux 6.0
2.0
Libssh 0.6.1
Authentication succeeds and the session is established the shell prompt is
also received but the session freezes.
For the above 1st 3 cases The establishment of the SSH session is not
consistent ,out of 10 trials we could see only twice the session is getting
established all the other attempts resulted in a failure.
The 4th case did not give us a successful session In any of the instances.
In the 1st two cases we changed the version to 2 and checked and in that we
see the result that session gets established but freezes.
This problem of session hang is consistent when the client is run from a
windows XP machine running with java version like
java version "1.6.0_20" . java version "1.6.0_01" .
When run from a windows 7 PC with java version "1.6.0_22" we see out of 10
times we see 2 times the session gets established and other times it is not
getting established.
Kindly let us know , why do we see the discrepancy in establishing the
sessions. And most of the times we are not seeing a successful shell. Do we
have to change any settings in the jsch config file. Or any other
modifications has to be done. Kindly let us know if any solution is
available for this and the reason for the above behavior
Thanks
Aarthi