Sir,
When I try to connect any Sun SSH server using ssh-
tools, I get the following error message.
com.sshtools.j2ssh.transport.MessageStoreEOFException:
The message store has reached EOF
at
com.sshtools.j2ssh.transport.SshMessageStore.getMessage
(Unknown Source)
at
com.sshtools.j2ssh.transport.SshMessageStore.getMessage
(Unknown Source)
at
com.sshtools.j2ssh.transport.SshMessageStore.getMessage
(Unknown Source)
at
com.sshtools.j2ssh.transport.TransportProtocolClient.re
questService(Unknown Source)
at com.sshtools.j2ssh.SshClient.connect
(Unknown Source)
at com.sshtools.j2ssh.SshClient.connect
(Unknown Source)
at com.sshtools.j2ssh.SshClient.connect
(Unknown Source)
at ssh.doSsh(ssh.java:45)
at ExecRemoteCommand.main
(ExecRemoteCommand.java:28)
But I am able to execute a command on OpenSSH
(eg.RedHat Server). I also checked for version
incompatibility. As per the documents ssh-tools
package will only support SSH2. So when a enabled
OpenSSH to support SSH version 1 only, the connection
hanged indefinitly. But the same thing I did in
SunSSH, But I got the same error message agin. Please
give me the solution as soon as possible. Because My
project is hanging because of this.
Log file generated while running the example program PasswordConnect.java
I am facing similar issue, did you get any solution?