xebialabs / overthere

Runs something "Over there"

Home Page:http://www.xebialabs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unkown connection protocol "ssh-jumpstation"

NicoSchueffelgen opened this issue · comments

Hello at all,

we use overthere to execute remote commands on a unix machine over a ssh jumpstation.
We used version 4.2.1 so far and anything is ok.
Now we updated overthere to version 4.4.1 and saw the connectiontype "TUNNEL" is deprecated.

So we modified our code according to documentation but we get a Exception like:
Unkown connection protocol ssh-jumpstation.

Here is our code:

`ConnectionOptions options = new ConnectionOptions();
options.set(ConnectionOptions.ADDRESS, #HOST#);
options.set(ConnectionOptions.USERNAME, #USERNAME#);
options.set(ConnectionOptions.OPERATING_SYSTEM, OperatingSystemFamily.UNIX);
options.set(SshConnectionBuilder.PRIVATE_KEY, #SSHKEY#);
options.set(SshConnectionBuilder.CONNECTION_TYPE, SshConnectionType.SCP);
if (#USEJUMPSTATION#)
{
ConnectionOptions options2 = new ConnectionOptions();
options2.set(ConnectionOptions.ADDRESS, #ADDRESS#);
options2.set(ConnectionOptions.USERNAME, #JUMPSTATIONUSERNAME#);
options2.set(ConnectionOptions.PASSWORD, #JUMPSTATIONPASSWORD#);
options2.set(ConnectionOptions.OPERATING_SYSTEM, OperatingSystemFamily.UNIX);
options.set(ConnectionOptions.JUMPSTATION, options2);
}

OverthereConnection connection = Overthere.getConnection(SshConnectionBuilder.SSH_PROTOCOL, options);`

Does that code work if you don't configure a jumpstation?

Can you paste the complete stacktrace of the exception?