Modify .ssh/config #10

Open
opened 2018-09-16 08:04:29 +00:00 by coolaj86 · 0 comments
Owner

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 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: coolaj86/telebit.js#10
No description provided.