~/.ssh/conf.d/**/*.sshconf into ~/.ssh/config
sshのconfigにincludeが追加されてやったー!って喜んでたら、zshのpreztoでサジェストされなくて死んだ
結局がんばって結合するしかないじゃん
sshconf -iで~/.ssh/conf.dと~/.ssh/conf.d/10-originalを作成する
使用中の~/.ssh/configを~/.ssh/conf.d/10-original/config.sshconfに待避する
sshconf -gで~/.ssh/conf.d以下の.sshconf拡張子のファイルを結合して~/.ssh/configに書き出す
sshconf -g --with-rootで/root/.ssh/configにも同じように書き出す
sshconf --docker-pregenerateで起動中のdockerコンテナーを、sshconf --lxc-pregenerateで起動中のlxcコンテナーをsshconf形式で自動生成する
生成後にsshconf -gで~/.ssh/configに書き出して反映させる
sshconf -eで${EDITOR} ~/.ssh/conf.dをする
sshconf -e codeとかするとVSCodeで開くのでべんりify
sshconf (-i|-g|-e|-v|-h) [OPTIONS]
-i, --init, --initialize : initialize ~/.ssh/conf.d
-g, --gen, --generate : generate ~/.ssh/config
--docker-pregenerate : pre-generate container of lxc to 88-docker/10-docker-running.sshconf
--lxc-pregenerate : pre-generate container of lxc to 89-lxc/10-lxc-running.sshconf
-e, --edit [editor] : open ~/.ssh/conf.d in your favorite editor <3
--update : update sshconf
-v, --version : show version
-h, --help : show help
OPTIONS:
--with-root : copy ~/.ssh/config to /root/.ssh/config when generate ssh config