Menu

#27 SSH issue with OS X 10.11

open
nobody
ssh (1)
2016-06-04
2015-08-20
J Witt
No

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.

Related

Bugs: #27

Discussion

  • dustinac

    dustinac - 2015-08-21

    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.

     
    • AJAYN

      AJAYN - 2016-01-17

      Any chance of getting a patch or update with this fix?

       
  • dustinac

    dustinac - 2015-08-21
    • labels: --> ssh
     
  • Erich Boleyn

    Erich Boleyn - 2016-05-01

    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.

     
    • Ritu Sangha

      Ritu Sangha - 2016-05-05

      Thank you Erich.
      Works like a charm.
      (remember to chown +x Chicken)

       
      • Jean-Michel Mignot

        rather: chmod u+x Chicken

         
        • Ritu Sangha

          Ritu Sangha - 2016-06-04

          Thank you for the correction,

          Jean-Michel

          I should have done that myself. :)

          Sent from my iPhone

          On Jun 4, 2016, at 6:29 AM, Jean-Michel Mignot jmig@users.sf.net wrote:
          rather: chmod u+x Chicken

          [bugs:#27] SSH issue with OS X 10.11

          Status: open
          Labels: ssh
          Created: Thu Aug 20, 2015 06:03 PM UTC by J Witt
          Last Updated: Sat May 21, 2016 02:57 AM UTC
          Owner: nobody

          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.

          Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/chicken/bugs/27/

          To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

           

          Related

          Bugs: #27

    • Anssi Johansson

      Anssi Johansson - 2016-08-09

      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".

       
    • Csaba

      Csaba - 2017-02-22

      Unfortunately, this patch no longer works on OS X 10.12 because the OS detects it as being from an unidentified developer.

       
  • Eileen

    Eileen - 2016-05-21

    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.

     
  • Jean-Michel Mignot

    My Chicken is back! Thanks a lot

     

Log in to post a comment.

MongoDB Logo MongoDB