Activate Back To My Mac using a Script or Command Line

The VPN software program I make use of for job (IPSecuritas) needs me to switch off Back To My Mac to start it's link, so I regularly switch off Back To My Mac in order to utilize my VPN link (the program does this for me). I neglect to transform it back on nonetheless and also I would certainly enjoy to recognize if there was something I can run (script, command) to transform it back on.

0
2019-05-04 09:58:07
Source Share
Answers: 1

There is no sustained means to do this. Having claimed that, you can do it making use of scutil:

[email protected]:~$ sudo scutil 
> set Setup:/Network/BackToMyMac
> d.add <YYY>  <XXX>.members.btmm.icloud.com
> set Setup:/Network/BackToMyMac
> quit
[email protected]:~$ 

Replacing <YYY> with the UID of the customer account on the system (for most individuals with solitary account that is 501), and also <XXX> with your iCloud account number. If you do not recognize that you can examine your dns - sd enrollments:

[email protected]:~$  dns-sd -E
Looking for recommended registration domains:
 DATE: ---Wed 22 Aug 2012---
 9:11:04.789  ...STARTING...
Timestamp     Recommended Registration domain
 9:11:04.789  Added     (More)               local
 9:11:04.789  Added                          icloud.com
                                             - > btmm
                                             - - > members
                                             - - - > <XXX>

The last line will certainly detail your iCloud customer number. I assume they are all 8 figure numbers, at the very least my own is.

0
2019-05-09 02:49:44
Source