Modify .ssh/config #10

开启中
coolaj862018-09-16 08:04:29 +00:00创建 · 0 评论
管理员

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.
登录 并参与到对话中。
1 名参与者
通知
到期时间
未设置到期时间。
依赖工单

没有设置依赖项。

参考:coolaj86/telebit.js#10
没有提供说明。