This has changed a little with 10.7 and you'll want to note that this uses IPv6 almost entirely so test with ping6
and traceroute6
to debug things.
It's no longer done via @computername.mobilemename.members.mac.com
, it's now done via members.btmm.icloud.com
, and its no longer as simple as your mobilemename
.
Step 1: Find out your iCloud BTMM domain
Either of these commands will provide your BTMM domain:
# dns-sd -E
# mDNS -E
The output is formatted slightly differently, but what you're after is the numeric ID, it'll be something like 12345678.members.btmm.icloud.com
.
Step 2: List Computers
You can use these tools to browse that domain for services, e.g. for ssh servers:
# dns-sd -B _ssh 12345678.members.btmm.icloud.com
Or if you already know the hostname just access it directly as computer-name.12345678.members.btmm.icloud.com
. (Any spaces in your computer name will be hyphens in this domain).
You can only access this from a computer that is also set up for BTMM on the same account, because this hostname will resolve to an IPv6 address that is really the end of an encrypted network tunnel between your BTMM computers.
If you want to see the IPv6 address for a specific host, you can type
# dns-sd -G v6 computer-name.12345678.members.btmm.icloud.com
And it'll output something like:
17:37:47.504 Add 2 0 computer-name.12345678.members.btmm.icloud.com. FD11:993E:64AE:4DEA:011F:FBD1:F444:11A1%<0> 152
Step 3: Connect
# ssh username@computer-name.12345678.members.btmm.icloud.com
Note
I'm not sure if that number will ever change, so you may or may not need to repeat Step 1 at some point later on...
I have a similar issue here, but not involving MobileMe.
I
've been struggling to see any of my iPhone 4 (running iOS 5 beta4) contacts appear in Lion's Address Book. It's all empty, whatever I do through iTunes (10.5 beta 4) (either manual syncing of Contacts, or by using iCloud).
At least all my contacts are still on the iPhone... but i'm stuck with a beautiful new Address Book on Lion which has 0 contacts... (or just that "Apple Inc" and "Me" contact cards)..
Best Answer
Update
There's a very simple way to simply SSH to a BTMM/iCloud computer:
In Terminal, in the Shell menu select New Remote Connection... (cmd+shift+K). From here you can browse by ssh/sftp/ftp/telnet hosts on the local or BTMM network.
This is obviously much easier for the individual apps that support iCloud/BTMM lookup (e.g. you'll also see file shares in the side-bar of Finder, and remote Airport devices in Airport Utility), but I'll leave the full instructions below for the more arbitrary use-cases.
For command line tools, Apple have replaced the old
<computer-name>.<mobileme-name>.members.mac.com
, with<computer-name>.<numeric-id>.members.btmm.icloud.com
(where the<numeric_id>
field is a number automatically generated for your Apple ID).Step 1: Find out your iCloud BTMM domain
First, look up your domain using the DNS Service Discovery tool:
The output is formatted slightly awkwardly, but what you're after is the numeric ID, which should be on the last line. You're after the full domain, something like
12345678.members.btmm.icloud.com
, howeverdns-sd
will display it (kind of) in reverse order, on separate lines:You'll also need to press ctrl+C after it displays the information you're after (it is designed to continue listening and updating). This applies to each use of
dns-sd
, here and below.Step 2: List Computers
You can use these tools to browse that domain for services, e.g. for ssh servers:
Or if you already know the hostname just access it directly as
computer-name.12345678.members.btmm.icloud.com
. (Any spaces in your computer name will be hyphens in this domain).You can only access this from a computer that is also set up for BTMM on the same Apple ID account, because this hostname will resolve to an IPv6 address that is really the end of an encrypted network tunnel between your Apple ID's BTMM computers.
If you want to see the IPv6 address for a specific host, you can type
And it'll display something like:
Step 3: Connect
Note
I'm not sure if that number will ever change, so you may or may not need to repeat Step 1 at some point later on... mine's been static for quite a few years now.