raczylo.com blog ~ #

Access your Mac via SSH using iCloud

Created on 2014-10-10 in categories ops , tutorial , howto
Tagged as: mac , ssh , apple , cloud , osx

If you've ever wondered how to SSH to your Mac from different computer of yours.

Got mac? I’m not a biggest apple fanboy ever but there are few things which I love in their products. First of all - everything just works, mostly out of the box. Second - almost everything what you need in admin / dev role is built-in. For example - instead of openvpn / teamviewer you can use built in screen sharing feature or even ssh to your laptop at home / at work without using any kind of third party software. Sounds great?

How can you ssh to your pc connected to iCloud

Don’t forget to switch on “remote access” in sharing preferences! Open terminal, and..

prompt$ dns-sd -E                                                                                                                                       
Looking for recommended registration domains:
DATE: ---Thu 13 Jun 2013---
12:13:54.040  ...STARTING...
Timestamp     Recommended Registration domain
12:13:54.040  Added     (More)               local
12:13:54.041  Added                          icloud.com
                                             - > btmm
                                             - - > members
                                             - - - > 270000000

Note member id ( or just copy/paste it ). Now you can easily execute SSH command

ssh -2 -6 username@Lukaszs-MacBook-Pro.270000000.members.btmm.icloud.com

There you are. Two simple steps, remote access to your machine, no VPNs, tunneling and 20+ steps tutorials starting with “apt-get install openvpn”.

* Table of contents *

* Check other posts *

* Categories *

aws(1) cloud(2) dev(2) gems(1) howto(3) mac(1) ops(7) projects(2) script(1) tools(1) tutorial(4)

* Tags *

api(1) apple(2) aws(3) bash(1) cloud(4) cluster(1) ec2(1) elasticsearch(1) gem(1) github(1) google-authenticator(1) google-cloud(1) iptables(1) linux(2) logging(1) mac(2) opensource(1) openvpn(1) osx(2) pci-compliance(1) ruby(2) security(2) ssh(1) ubuntu(1) wykop(1) yubikey(1)
comments powered by Disqus