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(3) dev(3) gems(1) howto(3) insights(1) internet(1) learning(1) lesson(1) mac(1) ops(8) post(1) projects(3) script(1) social(1) tools(1) tutorial(5)

* Tags *

api(2) apple(2) aws(3) bash(1) cloud(5) cluster(1) devices(1) docker(1) ec2(1) elasticsearch(1) gcp(1) gem(1) github(2) go(1) golang(2) google-authenticator(1) google-cloud(3) internet(1) iptables(1) kubernetes(1) linux(2) littleguardian(1) logging(1) mac(2) netgear(1) network(1) opensource(1) openvpn(1) osx(2) pci-compliance(1) review(1) ruby(2) security(2) ssh(1) tethering(1) tplink(1) ubuntu(1) wykop(1) yubikey(1)
comments powered by Disqus