Can't Connect to Remote Mac Using SSH and Chicken of the VNC

Hello,

I've configured my office iMac (remote) for SSH login, and am able to open a connection through Terminal, but when I try to connect with Chicken of the VNC (with the Terminal connection open), I get the following error message:

"channel 3: open failed: administratively prohibited: open failed"

What am I doing wrong? Any advice would be most appreciated.

Flat-panel iMac, iBook G4, Mac OS X (10.4.9), HP Laserwriter, Edirol PCR-30

Posted on Apr 17, 2007 6:30 AM

Reply
23 replies

Apr 19, 2007 6:45 AM in response to dotnet

The derivation of port number from display could be redundant, I suppose, but in my particular situations/installations, on home computer and work computer and on my laptop too, my display number is ALWAYS grayed out and cannot be changed from the display field, when I use those computers as the local client. The only way I can make that field update is by specifying the port number as part of CotVNC's host address. I've got a 2001 Quicksilver at home, a 2002 Quicksilver at work, and a Powerbook G4 laptop that came out right before the Intels were available in the stores, all running 10.4.9. Interesting that you are able to specify port number via the display field and I can't.

Never realized that "right-justification" "feature" of IP addresses before (127.1 = 127.0.0.1). I would have thought that unix's syntax would have been way to picky to allow that!

That said, sounds like Gregory's home computer is okay, wouldn't you agree? I'm thinking we should verify Gregory's iMac now, starting with what checkboxes are checked in System Preferences > Sharing > Firewall tab (even the grayed-out ones that are configured from the Services tab). So Gregory, on your iMac at work, please verify what services have you made available (checkboxes checked) from your work's iMac via the Firewall panel?

Also, Gregory, is that iBook G4 that you list in your profile your home computer? Would you be able to take it into work with you one day next week and try to affiliate to the work's subnet and make a (non-tunneled, unencrypted) VNC connection directly to your iMac (iBook cotVNC host address = {IPaddressOfYourIMAC} and display = 0)?

Apr 19, 2007 2:28 PM in response to j.v.

Hello j.v.

There's a few things I can tell you about my remote iMac's settings, although I'm not sure if they're relevant. First, I can in fact connect to it with Apple's Remote Desktop software. Secondly, under Ethernet>Proxies of the Network preferences, I have Use Passive FTP Mode (PASV) enabled because I used to have trouble with Interarchy. Thirdly, I have opened some custom ports in the Firewall under the Sharing preferences; two are for FileMaker Pro, and one is for FTP. The latter uses TCP ports 20-21 and 1024-65535. I did that because I was programming an online experiment for my students.

The services I have checked under the Firewall pane are Personal File Sharing; Personal Web Sharing; Remote Login SSH; FTP Access; Remote Desktop; Network Time; FileMaker Web Companion; FileMaker Multi-User; and the custom setting for FTP that I mentioned above.

Not sure what you mean here, j.v.: "...try to affiliate to the work's subnet and make a (non-tunneled, unencrypted) VNC connection directly to your iMac (iBook cotVNC host address = {IPaddressOfYourIMAC} and display = 0)" But, yes, I can take my iBook to work and mess around with it there.

Apr 19, 2007 9:41 PM in response to Gregory Lypny

Hey Gregory:

I notice that you don't report an independent entry for VNC in your (Sys Prefs Sharing Firewall) list. I talked about that in my first post at step 3:

3. System Preferences > Firewall: VNC checkbox is checked
(a) If you don't have a "VNC" entry in the list, click on "New" and make one. It is a "pre-canned" option in "New" that already defines the ports that will be opened in your computer's firewall.


This is in addition to the ARD entry that I talked about in step 1 of that post.

Now, at least currently in my ARD entry, it says it has ports 3283 and 5900 open, so one might argue why would one need to specify 5900 again in a VNC entry. I don't know, all I know is if I don't specify port 5900 in an independent VNC entry, it doesn't work. I can't explain it. It just doesn't work.

Similarly, one might also argue that you don't need to enable Remote Desktop because the ports are opened under your custom 1024-65535 thing, right? So, one could ask what happens with Remote Desktop if you uncheck Remote Desktop but leave the customized thing enabled? Can you still remote desktop?

Or, one could say that since you have Remote Desktop enabled even though you have the customized thing open that includes the same ports, why not make a (redundant) independent VNC entry, too?

So if you do not have a separate VNC entry in addition to your current Remote Desktop entry, I would say let's see what happens if you add one. If you do have to add a specific VNC entry to your iMac's Firewall Panel, when you click on "New," it is a choosable option under the "Port Name" pulldown menu and will autofill the TCP and UDP port information for you.

So, try adding an independent VNC entry in the imac's firewall panel and let's see what happens, okay?


(If you find that my post solves your problem, or is actually helpful towards arriving at a solution to your problem, please consider clicking on either the "helpful" or "solved" buttons in the header of my post. Thank you.)

Apr 20, 2007 8:47 AM in response to j.v.

Hello j.v.,

Once again, thank you for your help and patience.

I opened a VNC port in the Firewall pane as you suggested. Still no go.

As before, in Terminal I can open a connection successfully using

ssh -L 5901:127.0.0.1:5900 myShortName@remoteIP

I know that is working because I get the response, "Welcome to Darwin!" followed by a prompt with my remote domain name and short account name.

In Chicken, I enter

Host: 127.0.0.1:5901
Display: 1
Password: myPassword

where, Password refers to the password that I entered in the ARD pane of Sharing preferences on my remote iMac.

When I click Connect in Chicken, I get the following message

"Please configure Apple Remote Desktop to allow VNC Viewers to control the screen.
Unknown authType 30,31,32"

Apr 20, 2007 9:49 AM in response to Gregory Lypny

Not a problem with the help. I had some issues when I first was setting this up on my work and home and "on-the-road" computers and people on this forum helped me out, so it's my turn to "pass the torch." Hopefully, I won't drop the torch and burn the house down, and we'll have a happy ending here...

So let's verify some more settings on your iMac.

Refer to my first post step 2 for the "Server" (your iMac) computer:
2. System Preferences > Services > Apple Remote Desktop highlighted: click on "Access Privileges"
(a) upper half of Access Privileges configuration window: configure as desired
(b) lower half of Access Privileges configuration window: "VNC viewers may control screen with password" checkbox is checked and password is set


So, on your iMac, go into system preferences, click on sharing, and click on the services tab. Single click on Apple Remote Desktop so it is highlighted (make sure you haven't accidentally unchecked the checkbox for it when you do that).

Now, to the lower right of the scrollable "Services" menu with the checkboxes in it, do you see that button that just appeared that says "Access Privileges..."? Click on it. You get a new window. The top half has a list of user accounts on your iMac with a bunch of checkboxes to the left of it that you can check or uncheck to allow or disallow whatever you want each user to be able to do. (That's my step 2a part). On the bottom half of that window (my step 2b), there are two lines of text, each with a checkbox, that says:
⎔ Guests may request permission to control screen
☑VNC viewers may control screen with password ▭
Is that second box checked? It should be.
The password that you entered in your home computer's CotVNC for this work connection is the password that goes in the box to the right of the "☑VNC viewers may control screen with password" (myPassword)

Lemme know if all this stuff checks out and we'll try to figure out where to go from there. If it all does, I'm wondering, on your home computer, is the CotVNC password saved in your keychain? Might there have been a typo entering it there? Might it be worthwhile to delete it from your keychain and try manual password entry for one or two times? Might there have been a typo back in your iMac's "☑VNC viewers may control screen with password ▭" (the shadowed password display "•••••••••" is always so helpful in situations like these -- NOT)? But...one thing at a time....


(If you find that my post solves your problem, or is actually helpful towards arriving at a solution to your problem, please consider clicking on either the "helpful" or "solved" buttons in the header of my post. Thank you.)

Apr 21, 2007 8:21 AM in response to j.v.

Hello j.v.,

"On the bottom half of that window (my step 2b), there are two lines of text, each with a checkbox, that says:
⎔ Guests may request permission to control screen
☑VNC viewers may control screen with password ▭
Is that second box checked? It should be.
The password that you entered in your home computer's CotVNC for this work connection is the password that goes in the box to the right of the "☑VNC viewers may control screen with password" (myPassword)"

Yes, this is exactly what I have, and I am using the password I entered here for Chicken.

"Lemme know if all this stuff checks out and we'll try to figure out where to go from there. If it all does, I'm wondering, on your home computer, is the CotVNC password saved in your keychain? Might there have been a typo entering it there? Might it be worthwhile to delete it from your keychain and try manual password entry for one or two times? Might there have been a typo back in your iMac's "☑VNC viewers may control screen with password ▭" (the shadowed password display "•••••••••" is always so helpful in situations like these -- NOT)? But...one thing at a time...."

Here too. I never save settings to my Keychain until I get new software working properly. I chose a simple password to minimize typo problems.

It's a tricky one, eh?

Flat-panel iMac, iBook G4 Mac OS X (10.4.9) HP Laserwriter, Edirol PCR-30

Apr 21, 2007 10:46 AM in response to Gregory Lypny

Tricky? Uhhhh, yeah! Very perplexing....

You seem to have a lot of services open -- I'm wondering might there be a conflict. Two things I would suggest trying would be (1) turn off (temporarily) all services but ssh and ARD-enabled VNC, as in shut down those services on the firewall and making sure that your programs like FileMaker, etc., aren't running as faceless daemons in the background, and (2) try setting this up in the reverse direction with your iMac as the local VNC client connecting to your Powerbook as the VNC server.

A couple of other things -- you don't have any copies of Apple Remote Desktop client installed and/or running anywhere, do you (other than the "OEM" configuration of ARD in the firewall settings of your system preferences' sharing stuff)? I don't have ARD client (it's like big buck$ so I find CotVNC's quite adequate on a feature-to-cost ratio basis), but I'm wondering that since ARD client is, as I understand it, VNC-like, whether there might be some sort of conflict going on with that and CotVNC. There wouldn't be some esoteric setting in VNC about a password to control the screen or something like that, that is somehow, through some configuration file buried in the bowels of your computers, conflicting with what you are trying to do here? Seems unlikely, but, right now it sounds like your ssh/ARD-enabled-VNC config is identical to both instances of mine so I'm really perplexed as to why mine work and yours don't.

I had asked earlier about when your iBook is inside your work's firewall, and you said that when you connected VNC to your iBook specifying the iMac's IP address as the CotVNC host address, that that worked okay, right? While inside the firewall, and setting up a ssh tunnel, you still crash and burn, right?

Also, since you have personal file sharing enabled on your iMac, are you (as I successfully do) tunneling that in ssh so you can securely afp-mount your iMac on your iBook? I do that with a -L 5480:localhost:548 port tunneling directive in my ssh login command, and then in the Finder, I ⌘k to afp-mount localhost:5480. Does that work for you? I'm just trying to see if other services seem to be tunneling okay for you.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can't Connect to Remote Mac Using SSH and Chicken of the VNC

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.