インフラ作業しはじめると、知識をアップデートしていかないと無駄に手間かかることやり続けてよくないなって思うこと多いよね。

先日見直したやつはさ、

外部から入口になってるsshサーバに入って、そこから内部のサーバにsshする多段接続する時にさ、.ssh/configに

ProxyCommand ssh -W %h:%p -i ~/.ssh/id_ed25519 -p 22 noel@xxx.xxx.xxx.xxx

みたいなの書いてやってたわけさ。xxx.xxx.xxx.xxxサーバ経由でつなぐとき。

書き方ぜんぜん頭に残らないので、都度調べたりしながら……。

これ、

ProxyJump Bastion

(Bastionは別に定義しといた入口のHost定義)

って書くだけでいいんだよね。

0

If you have a fediverse account, you can quote this note from your own instance. Search https://fedibird.com/users/noellabo/statuses/114510223519169949 on your instance and quote it. (Note that quoting is not supported in Mastodon.)