Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
A pure Java implementation for SSH port tunneling that is able to understand
OpenSSH configurations which involve multiple hops to reach a target host.
This library essentially combines JSch with the ability to understand
ProxyJump
or ProxyCommand
configurations in your local ~/.ssh/config
file.
Add the following Maven dependency to your project:
<dependency>
<groupId>de.cronn</groupId>
<artifactId>ssh-proxy</artifactId>
<version>1.6</version>
</dependency>
# cat ~/.ssh/config
Host jumpHost1
User my-user
HostName jumphost1.my.domain
Host jumpHost2
User other-user
ProxyJump jumpHost1
Host targetHost
ProxyCommand ssh -q -W %h:%p jumpHost2
try (SshProxy sshProxy = new SshProxy()) {
int targetPort = 1234;
int port = sshProxy.connect("jumpHost2", "targetHost", targetPort);
try (Socket s = new Socket(SshProxy.LOCALHOST, port)) {
OutputStream out = s.getOutputStream();
InputStream in = s.getInputStream();
// ...
}
}
FAQs
Pure Java implementation to tunnel to TCP endpoints through SSH
We found that de.cronn:ssh-proxy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.