-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm having a problem with OpenSSH_4.0p1 when trying to do remote port forwards to a server running SSH Secure Shell 2.4.0. The problem appears to be that 2.4.0 chokes on bind addresses that aren't numeric addresses, such as "localhost" and "". The following commands are failing for me from the 4.0p1 client to the 2.4.0 server: ~ ssh -R 50000:localhost:50000 server ~ ssh -R localhost:50000:localhost:50000 server ~ ssh -R :50000:localhost:50000 server ~ ssh -R \*:50000:localhost:50000 server although these commands work just fine: ~ ssh -R 127.0.0.1:50000:localhost:50000 server ~ ssh -R 0.0.0.0:50000:localhost:50000 server ~ ssh -R 192.168.1.1:50000:localhost:50000 server The attached patch solves the problem for me. It sends "0.0.0.0" as the address_to_bind for these cases ~ ssh -R 50000:localhost:50000 server ~ ssh -R :50000:localhost:50000 server ~ ssh -R \*:50000:localhost:50000 server but still passes through the specified address for ~ ssh -R 192.168.1.1:50000:localhost:50000 server David - -- David Rothenberger spammer? -> spam at daveroth.dyndns.org GPG/PGP: 0x7F67E734, C233 365A 25EF 2C5F C8E1 43DF B44F BA26 7F67 E734 The major sin is the sin of being born. -- Samuel Beckett -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Cygwin) Comment: Using GnuPG with Thunderbird - enigmail.mozdev.org iD8DBQFCUeqUtE+6Jn9n5zQRAro2AKDs4gO8mjPSPKa2ilg8ykC+6zDJHwCeM/eY J4esAWbP11+0X+2hQCv7HEk=/5+I -----END PGP SIGNATURE----- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: openssh-4.0p1.patch Url: lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20050404/48ecbc81/attachment.ksh
On 4/4/2005 6:32 PM, David Rothenberger wrote:> I'm having a problem with OpenSSH_4.0p1 when trying to do remote port > forwards to a server running SSH Secure Shell 2.4.0.[...]> The attached patch solves the problem for me.The silence regarding my earlier post makes me think I did something wrong? Is this the correct place to report bugs and propose patches to fix them? -- David Rothenberger spammer? -> spam at daveroth.dyndns.org GPG/PGP: 0x7F67E734, C233 365A 25EF 2C5F C8E1 43DF B44F BA26 7F67 E734 Under capitalism, man exploits man. Under communism, it's just the opposite. -- J.K. Galbraith