Open dcrissman opened 6 years ago
On debian 9. The default netcat-original
library does not support the -U
option:
$ netcat -U
netcat: invalid option -- 'U'
nc -h for help
On the contrary, when you install the replacement - netcat-openbsd
package, it works the right way. So not only BSD systems problem. It would be nice if the PR would be merged.
As a workaround, I created a wrapper /usr/local/bin/nc
#!/usr/bin/env bash
if [[ "-h" == $1 ]]; then
exec /usr/bin/nc "$@" 1>&2
else
exec /usr/bin/nc "$@"
fi
But fixing the library could be a better way, but currently I was unable to build it cause of very old dependencies ...
I've build a patches version. You can find on gitlab https://gitlab.com/tristanlins/jsch-agent-proxy/-/packages/109518
Simply add the gitlab repository to your pom.xml
+ <repositories>
+ <repository>
+ <id>gitlab-maven</id>
+ <url>https://gitlab.com/api/v4/projects/17382956/packages/maven</url>
+ </repository>
+ </repositories>
And change the usocket-nc dependency version to 0.0.9-p1
<dependencies>
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jsch.agentproxy.usocket-nc</artifactId>
- <version>0.0.9</version>
+ <version>0.0.9-p1</version>
</dependency>
</dependencies>
OS: RHEL 7.3
I don't seem to have a 'netcat' application at all, however I do have a 'ncat' that does have a -U option. As far as I can tell, it is the same application.
Could the application try both?