Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Great feature, a few supplements' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Great feature, a few supplements
Authored by: lullabud on Aug 10, '12 08:46:28AM
I use this daily and it's really great. A few things…

1) It's easier to get your full domain name and available ssh computers by using dns-sd -B _ssh
2) Create a .ssh/config option for your new btmm hostname to make it easier. Mine are all hostname-btmm.
3) Expect interruptions. I've consistently found that my ssh sessions are prematurely terminated. For this reason I always connect to screen when working over btmm.


Another thing I couldn't figure out was how to add the btmm domain into the dns search, which would let you skip 1 and 2… If anybody knows how, please post it!
Edited on Aug 10, '12 08:47:00AM by lullabud


[ Reply to This | # ]
Great feature, a few supplements
Authored by: sabi on Aug 10, '12 09:53:03AM
You should just be able to add the search domain in Network System Preferences. scutil --dns should show you the resolver/search configuration; you could add it via scutil as well if you wanted to (the syntax is a bit annoying).

Note that you can actually have one machine with multiple iCloud accounts for Back to My Mac, so you may see multiple resolvers. For example, with two iCloud accounts configured, I see:

DNS configuration

resolver #1
  search domain[0] : nyc.sabi.net
  nameserver[0] : 8.8.4.4
  nameserver[1] : 8.8.8.8

resolver #2
  domain   : xxx.members.btmm.icloud.com
  options  : pdns
  timeout  : 5
  order    : 150000

resolver #3
  domain   : yyy.members.btmm.icloud.com
  options  : pdns
  timeout  : 5
  order    : 150200
[...]

This all worked with .Mac/MobileMe, too, except the domains were shorter and easier to remember («host».«username».members.mac.com); since iCloud uses arbitrary email addresses instead, I guess this is the best they could do.

If your SSH sessions are getting interrupted, check out mosh. I still use it with tmux for the multiple windows, but it's great on a flaky network or even just with a machine you're constantly putting to sleep. Unfortunately I think the license precludes an iOS port.

Edited on Aug 10, '12 09:54:52AM by sabi


[ Reply to This | # ]
Great feature, a few supplements
Authored by: CoolerQ on Aug 10, '12 12:43:28PM

As someone who has contributed to mosh, I can tell you that the license does not preclude an iOS port. However, it does have an open-source license, which means it cannot be incorporated into commercial SSH apps in the App Store. Anyone is free to take mosh and release an open-source app that uses it in the App Store.



[ Reply to This | # ]
Great feature, a few supplements
Authored by: rloomans on Aug 23, '12 10:27:35PM

There is specifically a waiver (https://github.com/keithw/mosh/blob/master/COPYING.iOS) that releases iOS developers from App Store related conflicts with GPLv3... but that not a free pass for commercial software to, for example, avoid the requirement to release source code.

I would be curious if this would mean that an existing iOS SSH client would be expected to release source to their entire app or just any changes they make to mosh...



[ Reply to This | # ]