Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Use Terminal to open Screen Sharing connections Network
The open command in Terminal will, when given a vnc://1.2.3.4 (or vnc://hostname) protocol argument, open the Screen Sharing app and connect to IP address 1.2.3.4 (or hostname).

[robg adds: I was certain we'd covered this tip somewhere before, but all I can find is a brief mention in this comment to this hint about dict:// URLs.]
    •    
  • Currently 3.20 / 5
  You rated: 3 / 5 (15 votes cast)
 
[16,548 views]  

Use Terminal to open Screen Sharing connections | 10 comments | Create New Account
Click here to return to the 'Use Terminal to open Screen Sharing connections' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use Terminal to open Screen Sharing connections
Authored by: blackketter on Mar 18, '10 07:48:05AM

Definitely useful, these vnc: URLs.

I keep vnc: URLs in my Safari bookmarks for each of the machines I need to connect to. This makes them available via Safari and Launchbar for quick access. If only it worked with Mocha VNC on my iPhone too...

In order to create a vnc: bookmark, I found I had to create a placeholder bookmark, then use "Show All Bookmarks" and edit the URL.



[ Reply to This | # ]
Use Terminal to open Screen Sharing connections
Authored by: ide3308 on Mar 18, '10 07:50:53AM

Hey, I'll share an even easier way: type in vnc://ip.add.re.ss in firefox and skip this step. Another trick I use: I keep a subdomain vnc.domain.com to forward to my computer's external IP address. then all I need to do is tack on the vnc:// once I'm redirected.



[ Reply to This | # ]
Use Terminal to open Screen Sharing connections
Authored by: allanmarcus on Mar 18, '10 11:11:47AM

Same works with Connect to Server int he Finder.



[ Reply to This | # ]
Use Terminal to open Screen Sharing connections
Authored by: sjk on Mar 18, '10 02:14:10PM

You can also add them as bookmarks and use utilities like LaunchBar to access them.



[ Reply to This | # ]
Use Terminal to open Screen Sharing connections
Authored by: peelman on Mar 19, '10 05:36:25AM

If you're using CoRD you can do the same thing for rdp sessions using rdp:// URLs. More details here



[ Reply to This | # ]
Use Terminal to open Screen Sharing connections
Authored by: Skurfer on Mar 19, '10 07:43:01AM

For those of us using Quicksilver, there’s an awesome* plug-in that indexes remote hosts and allows VNC, SSH, Telnet and many other types of connections.

http://github.com/skurfer/RemoteHosts

* Yeah, OK, so I wrote it. :)



[ Reply to This | # ]
Use Terminal to open Screen Sharing connections
Authored by: MacDude on Mar 19, '10 10:07:05AM

This very useful on our Kace KBox system to use as a managed action. Saves having to cut and paste. As Rob pointed out, other things like ssh://1.2.3.4 work as well.

---
--
Wow, who thought this would happen?
-jjh



[ Reply to This | # ]
how to use ports
Authored by: SOX on Mar 22, '10 03:18:25PM

is there a way to specify which port to use?

will something like

open vnc://1.2.3.4:7900

work? what about specifying usernames and passwords?



[ Reply to This | # ]
Use Terminal to open Screen Sharing connections
Authored by: dcottle on Mar 22, '10 10:24:14PM

I've been using Quickeys to create shortcuts to vnc connections; but I had to script key commands to open Go/Connect to Server then type. It sometimes actually crashed (and relaunched) the finder. Using a shell script is much cleaner.



[ Reply to This | # ]
Use Terminal to open Screen Sharing connections
Authored by: elbombillo on Mar 24, '10 06:53:10PM

In 10.5 I remember doing something like this:

open vnc://USER:PASSWORD@myremote.com:port

Please be cautious when when your user name or password contains special characters.



[ Reply to This | # ]