Red Hat Bugzilla – Bug 625608
IPv6 local port forward does not work as described in man-page
Last modified: 2010-09-14 04:40:39 EDT
Description of problem:
man 1 ssh describes:
> -L [bind_address:]port:host:hostport
> IPv6 addresses can be specified with an alternative syntax:
> [bind_address/]port/host/hostport or by enclosing the address in
> square brackets.
Syntax with slashes - as described - does not work:
mfaux@reykjavik ~ % ssh -L '1234/::1/1234' 22.214.171.124
Bad local forwarding specification '1234/::1/1234'
Version-Release number of selected component (if applicable):
If executing "ssh -L 1234/::1/1234 server" ssh closes with "Bad local forwarding specification '1234/::1/1234'".
ssh should interpret the syntax as described in the man page.
Workaround: Use "enclosing address in square brackets" method: "ssh -L '1234:[::1]:1234'".
reported upstream as https://bugzilla.mindrot.org/show_bug.cgi?id=1819