Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

mohemohe/sshconf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

22 Commits

Repository files navigation

sshconf

~/.ssh/conf.d/**/*.sshconf into ~/.ssh/config

これ is なに

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

man

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

About

~/.ssh/conf.d/**/*.sshconf into ~/.ssh/config

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /