Im developing an application to connect in a plataform and execute some commands, but this plataform isnt a common computer. She is like and router who communicates ssh.
When i try to connect using J2SSH lib's i got this message:
com.sshtools.j2ssh.transport.TransportProtocolException: The protocol version of the remote computer is not supported!
And i know that, but i take the risk of connect and execute commands on her. There is a way to do it? Ignore this problem of version...
What version is it? A log would be helpful showing the full stack trace.
I only can offer the return off comand "ssh -v <hostname>" executed by my computer, because im not resposable for this plataform and the company that is, probably cant provide this to me.
I'm doing these test's in production, there is no ambient of test's
Here is the result of "ssh -v <hostname>":
OpenSSH_5.2p1, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 188.8.131.52 [184.108.40.206] port 22.
debug1: Connection established.
debug1: identity file /media/disk/jayrmotta/.ssh/identity type -1
debug1: identity file /media/disk/jayrmotta/.ssh/id_rsa type -1
debug1: identity file /media/disk/jayrmotta/.ssh/id_dsa type -1
<b>debug1: Remote protocol version 1.5, remote software version HUAWEI-VRP3.1
debug1: no match: HUAWEI-VRP3.1</b>
debug1: Local version string SSH-1.5-OpenSSH_5.2
debug1: Waiting for server public key.
debug1: Received server public key (768 bits) and host key (1024 bits).
debug1: Host '220.127.116.11' is known and matches the RSA1 host key.
debug1: Found key in /media/disk/jayrmotta/.ssh/known_hosts:9
debug1: Encryption type: 3des
debug1: Sent encrypted session key.
debug1: Installing crc compensation attack detector.
debug1: Received encrypted confirmation.
debug1: RSA authentication using agent refused.
debug1: Doing password authentication.
In another research i've discovered that what cause this exception is this line:
debug1: Remote protocol version 1.5, remote software version HUAWEI-VRP3.1
debug1: no match: HUAWEI-VRP3.1
But what i cant understand is why i can connect trought the terminal, and cant trought the code. It has to be a way for ignore this version or something like that!
The server protocol version is 1.5. It needs to support protocol version 2.0 to work with j2ssh.
http://www.snailbook.com/docs/protocol-1.5.txt and http://www.snailbook.com/protocols.html
OpenSSH 5.2 supports 1.5 (http://www.openssh.com/txt/release-5.2) which is why you example connection above works. http://www.ssh.com/documents/28/sshtdg2_ch03.pdf provides related info as well.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.