One SSH config to rule 40 boxes
Stop typing IPs and ports. Build ~/.ssh/config once:
— Per host: Host web1 / HostName 1.2.3.4 / User deploy / Port 2222 / IdentityFile ~/.ssh/web1
— Reuse connections: ControlMaster auto, ControlPath ~/.ssh/cm-%r@%h:%p, ControlPersist 10m — second login is instant
— Tunnel through a bastion: ProxyJump bastion on the private boxes
Now it's just ssh web1. The ControlMaster reuse alone saves you the handshake on every command. Try it tonight.
Root Access Daily
@RootAccessDaily
One SSH config to rule 40 boxes
Этот пост опубликован в Telegram-канале Root Access Daily. Подписаться можно по ссылке: @RootAccessDaily.