Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remote port forwarding with SSH (changes since 10.4.3?)



Just in case someone should run across my original post later looking for an answer to the same problem...

The version of OpenSSH installed was changed with "Security Update 2006-0004".

The newer version of OpenSSH (4.x) adds an optional prefix to the value for the -R switch that can be used to specify the bind address. If you don't specify anything for this, ssh defaults to using localhost, which the server I was trying to connect to (a Windows 2003 server) does not handle that properly. Apparently, the previous versions of SSH defaulted to sending 0.0.0.0 for the bind address. So, by filling in that optional part of the argument with that value works around the problem.

Many thanks to the fine folks at Apple Developer Technical Support for helping me figure this one out.

-=- John

------------------------------------------------
John Turnipseed
Macintosh Software Übercoder
Nanonation, Inc., Lincoln, Nebraska



On Sep 20, 2006, at 06:14:34 PM, John Turnipseed wrote:


Something with respect to ssh tunneling appears to have changed in a recent update to Tiger. 

An ssh command that I have been using for setting up a remote port forwarding tunnel from a server to my machine has stopped working under 10.4.7. I know for certain that it changed sometime after 10.4.3. I still have a 10.4.3 machine and the command works fine from there. It may have been working in other versions since then, but I don't have anything in between at the moment to go back and check.

The command in question looks like this:

ssh -R 50686:127.0.0.1:5500 -C -p 8888 someuser@XXX.XXX.XXX.XXX -N

XXX.XXX.XXX.XXX is the static IP address of a remote Windows 2003 Server with an SSH service listening on port 8888.

The port 50686 is available on the server, and like I said, the exact above command works fine from a Mac OS X 10.4.3 machine to the same server.

The above command, with -vv appended, executed from a 10.4.3 box get's the following:

debug1: Authentication succeeded (password).
debug1: Connections to remote port 50686 forwarded to local address 127.0.0.1:5500
debug1: Entering interactive session.
debug1: remote forward success for: listen 50686, connect 127.0.0.1:5500


The exact same command executed on a 10.4.7 machine, results in the following:

debug1: Authentication succeeded (password).
debug1: Remote connections from LOCALHOST:50686 forwarded to local address 127.0.0.1:5500
debug1: Entering interactive session.
debug1: remote forward failure for: listen 50686, connect 127.0.0.1:5500
Warning: remote port forwarding failed for listen port 50686


I'm not sure where the LOCALHOST in the above result is coming from on 10.4.7. The way I read it, it makes me think it's trying to create a tunnel between the two local ports for some reason and not between the local port and the remote server's port.

The versions of SSH are different, but I've yet to find any release notes that tell me what changed that might pertain to this problem.

Mac OS X 10.4.3
OpenSSH 3.8.1p1
OpenSSL 0.9.7g

Mac OS X 10.4.7
OpenSSH 4.2p1
OpenSSL 0.9.7i

Any suggestions or pointers would be greatly appreciated.

-=- John

------------------------------------------------
John Turnipseed
Macintosh Software Übercoder
Nanonation, Inc., Lincoln, Nebraska



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.