1

With enter image description here, I can access my mac at home via VNC. When in the same network, I also can access it via ssh with the name NAME.local with the help of bonjour.

enter image description here

Then, is it possible to terminal login the mac at home via VNC + SSH or anything? I tried with NAME.local outside local network, but the name is not recognized.

ADDED

ssh computername.`echo show Setup:/Network/BackToMyMac | scutil | sed -n 's/.* : *\(.*\).$/\1/p'`

also works fine.

Reference: http://smithjw.me/blog/2012/8/1/initiating-screen-sharing-or-back-to-my-mac-from-the-command.html

2

Yes, you can use the iCloud Back to My Mac address to SSH/VNC in. You can obtain your address using the following command.

dns-sd -E

The final line shows the account number.
Use the following syntax for determining the address:

computername.number.members.btmm.icloud.com

Providing you have port forwarded correctly, you can use this address to connect over SSH/VNC.

  • I updated the post, could you help me out? – prosseek Feb 23 '14 at 17:09
  • @prosseek Make sure your computer name is correct — run hostname and use that as your computer name. – grg Feb 23 '14 at 17:10
  • I tried the name from host, but I got the same error. The name includes .local, I tried with and without it to get the same error. – prosseek Feb 23 '14 at 17:12
  • @prosseek Try setting the hostname to not include .local — run scutil --set HostName yourcomputername – grg Feb 23 '14 at 17:16
  • 1
    ping doesn't work, but ssh does work: smithjw.me/blog/2012/8/1/… – prosseek Feb 24 '14 at 4:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .