If the granted domain does not already exist in ~/.ssh/config (either by Host or by Hostname) append (to the end of the file) the appropriate lines specifying the proxy:
When `telebit ssh auto`:
If the granted domain does not already exist in `~/.ssh/config` (either by `Host` or by `Hostname`) append (to the end of the file) the appropriate lines specifying the proxy:
```
Host <rando>.telebit.io
ProxyCommand telebit sclient %h
```
TODO: And if it's Windows? What then?
TODO: If sclient is installed, us it directly:
```
Host <rando>.telebit.io
ProxyCommand sclient %h
```
`openssl s_client` could also be used, but it's a mouthful:
```
Host <rando>.telebit.io
# ProxyCommand openssl s_client -quiet -connect sharp-earwig-32.telebit.ppl.family:443 -servername sharp-earwig-32.telebit.ppl.family
```
It'll probably be best to create this functionality as a separate file and then plug it in right around https://git.coolaj86.com/coolaj86/telebit.js/src/branch/master/bin/telebitd.js#L310 where `state.config.sshAuto = 22;` is executed.
When
telebit ssh auto
:If the granted domain does not already exist in
~/.ssh/config
(either byHost
or byHostname
) append (to the end of the file) the appropriate lines specifying the proxy:TODO: And if it's Windows? What then?
TODO: If sclient is installed, us it directly:
openssl s_client
could also be used, but it's a mouthful:It'll probably be best to create this functionality as a separate file and then plug it in right around https://git.coolaj86.com/coolaj86/telebit.js/src/branch/master/bin/telebitd.js#L310 where
state.config.sshAuto = 22;
is executed.