Replies: 3 comments 7 replies
-
You can create your own instance of a |
Beta Was this translation helpful? Give feedback.
-
The Connection is not allowed by ruleset message is a response from the SOCKS proxy server indicating that the connection to the specified SSH host and port is not permitted. The error implies that the SOCKS server configuration needs to be changed in order to permit the client to make the SSH connection. |
Beta Was this translation helpful? Give feedback.
-
That's a lot of work to simply specify a proxy. Is there no way to pass in a java.net.Proxy class? |
Beta Was this translation helpful? Give feedback.
-
Hello All,
I need to connect to a server via a socks proxy. I am using version 0.35.0. I could not find any method that support socks proxy. Please help.
Here are the codes that I am using to connect to the server via socks proxy
final SSHClient client = new SSHClient();
try
{
System.setProperty("java.net.useSystemProxies", "false");
System.setProperty("socksProxyHost", "my socks proxy server");
System.setProperty("socksProxyPort", "1080");
System.setProperty("socksProxyVersion", "5");
System.setProperty("java.net.socks.username", "");
System.setProperty("java.net.socks.password", "");
}
catch (final UserAuthException | TransportException e)
{
throw new CobaltException("Error setting client credentials", e);
}
I always got the error message: SOCKS: Connection not allowed by ruleset.
Does anyone know how to use SOCK5? Or does this library still support SOCK5? I saw someone add the connect() that supported Proxy back in 2014 but seem like that method was removed.
https://github.com/hierynomus/sshj/pull/141/files
Beta Was this translation helpful? Give feedback.
All reactions