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

SshClientBuilder.create() fails with java.IOException #95

Closed
rgl-1976 opened this issue Jun 21, 2024 · 1 comment
Closed

SshClientBuilder.create() fails with java.IOException #95

rgl-1976 opened this issue Jun 21, 2024 · 1 comment

Comments

@rgl-1976
Copy link

My attempt to create an SshClient with maverick-synergy-client-3.1.1-all.jar fails with:

java.io.IOException: Failed to connect to 192.168.7.161:22
at com.sshtools.client.SshClient.doConnect(SshClient.java:1030)
at com.sshtools.client.SshClient.(SshClient.java:560)
at com.sshtools.client.SshClient$SshClientBuilder.build(SshClient.java:538)

I am trying to generate debug output with:

import com.sshtools.common.logger.Log;
.
.
.
Log.getDefaultContext().enableConsole(Level.DEBUG);

I'm getting an error "Cannot find symbol" for Level.DEBUG.

Any help would be appreciated.

@ludup
Copy link
Contributor

ludup commented Oct 15, 2024

The API requires maverick-logging.jar and any other dependencies. If your adding jars directly, maybe start with all jars in the download rather than a selective few to prevent this error. You can always refine the classpath later.

@ludup ludup closed this as completed Oct 15, 2024
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