Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unkown connection protocol "ssh-jumpstation" #191

Open
NicoSchueffelgen opened this issue Nov 17, 2016 · 1 comment
Open

Unkown connection protocol "ssh-jumpstation" #191

NicoSchueffelgen opened this issue Nov 17, 2016 · 1 comment

Comments

@NicoSchueffelgen
Copy link

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);`

@vpartington
Copy link
Contributor

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

Can you paste the complete stacktrace of the exception?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants