sshtools / maverick-synergy

Next Generation Java SSH API
https://jadaptive.com
GNU Lesser General Public License v3.0
96 stars 26 forks source link

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

Closed rgl-1976 closed 1 month ago

rgl-1976 commented 5 months ago

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 commented 1 month ago

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.