Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • 6
    anyone know the equivalent on netcat-openbsd? Commented Jul 23, 2017 at 18:20
  • 7
    Analog for netcat version that is included in busybox: nc -v -lk -p 8001 -e /usr/bin/nc 127.0.0.1 8000. (Description of params) Commented Mar 16, 2018 at 13:30
  • 3
    Working, but the nc command ends after the first remote connection. Add -k if you need to keep it running. Commented Jun 20, 2018 at 23:49
  • 4
    I'm getting this error: nc: cannot use -p and -l on CentOS 6.4. Is there a work around? Commented Jul 16, 2018 at 15:52
  • I prefer this solution over the ssh one because it makes it easier to use as root, when one needs to locally forward a privileged port. Commented Aug 15, 2018 at 0:58