[Bug 1787] New: -g flag has issues with ipv6 (Address already in use)
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Tue Jun 22 23:35:18 EST 2010
https://bugzilla.mindrot.org/show_bug.cgi?id=1787
Summary: -g flag has issues with ipv6 (Address already in use)
Product: Portable OpenSSH
Version: 5.3p1
Platform: amd64
OS/Version: Linux
Status: NEW
Severity: trivial
Priority: P2
Component: ssh
AssignedTo: unassigned-bugs at mindrot.org
ReportedBy: hnassrat at gmail.com
Using the -g flag, gives an error, e.g.:
hnassrat at HNASSRAT-LNX1 ~> ssh -vgL 9000:localhost:9000 hatem at nassrat
[...]
debug1: Local connections to *:9000 forwarded to remote address
localhost:9000
debug1: Local forwarding listening on 0.0.0.0 port 9000.
debug1: channel 0: new [port listener]
debug1: Local forwarding listening on :: port 9000.
bind: Address already in use
I am not sure if this issue is specific to linux and thus a bug in
linux network config, but when it bound to 0.0.0.0 it listens to all
interfaces then trying to listen to the ipv6 interface causes it to say
bind address already in use. In this case (OpenSSH_5.3p1
Debian-3ubuntu3, OpenSSL 0.9.8k 25 Mar 2009) the error is useless,
however with a machine running OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5
01 Jul 2008 it binds to ipv6 first.
In any case the workaround I used, thanks to ssh being awesome and
having cool features, is to use the command as follows:
hnassrat at HNASSRAT-LNX1 ~> ssh -4gL 9000:localhost:9000 hatem at nassrat
This maybe another side-effect, but although I specified only listen on
ipv4, i would think it will probably listen on all interfaces (thats
probably not an ssh bug though).
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list