SSH issue with OS X 10.11
Brought to you by:
dustinac
When trying to initiate a VNC session over an SSH tunnel through Chicken you will see the following error:
Command line:
Chicken[1095:26855] Unknown message from ssh error: Bad local forwarding specification '5910/x.x.x.x/5934'
GUI window:
Could not establish an SSH connection to server <servername>
The ssh program quit unexpectedly</servername>
It looks like Chicken is using / to separate the SSH port from IP and the most recent version of SSH included with OSX no longer supports that.
Thanks for the bug report. You're right that the newer versions of OpenSSH seem to have dropped support for the port/address/port forwarding specifications. I will fix this for version 2.2. In the meantime, I think the only workaround is to set-up the ssh tunnel by hand in Terminal if you're using OS X 10.11.
Any chance of getting a patch or update with this fix?
Hi all, I saw this problem with my wife using Chicken on her Macbook Air, and since I didn't have the old tools set up to build Chicken with, I figured I'd see if I could patch the binary executable by changing the internal printf strings from "%d/%@/%d" to "%d:%@:%d".
Well, what do you know, it worked great. It should be backwards compatible with old MacOS X as well, since the ":" notation has been supported on ssh for a long time.
Anyway, I'm attaching the hacked binary (a total of 4 bytes changed, the string appears twice, and there are two changes to the string in each one) for all to enjoy. You just replace the file "/Applications/Chicken.app/Contents/MacOS/Chicken" with the new one (calling it "Chicken" still), and it worked for me.
Enjoy all.
Thank you Erich.
Works like a charm.
(remember to chown +x Chicken)
rather: chmod u+x Chicken
Thank you for the correction,
I should have done that myself. :)
Sent from my iPhone
Related
Bugs: #27
Thanks, the patched Chicken works nicely. For those who are afraid of using random binaries posted on the Internet, I verified that nothing else apart from those strings were changed. I checked this by running "xxd Chicken > old.txt; xxd Chicken_new > new.txt; diff old.txt new.txt".
Unfortunately, this patch no longer works on OS X 10.12 because the OS detects it as being from an unidentified developer.
Erich, THANK YOU so much. You saved me lugging a second linux laptop all over Europe so that I could get work done. Thank you.
My Chicken is back! Thanks a lot