[ssh] Cleaning up shells and ssh configurablility when not at home

This commit is contained in:
2024-08-09 10:13:03 -03:00
parent f8e270e0df
commit e7a8071ef5
6 changed files with 81 additions and 58 deletions

View File

@ -97,8 +97,13 @@ Host *.local *.service
VerifyHostKeyDNS no
## Jail hosts all need a jump
Host *.local 192.168.40.* *.service
Match exec "onsubnet 192.168.40." host *.service
User root
IdentityFile ~/.ssh/jails
Hostname %h
#ProxyJump bastion.unbl.ink
Match exec "onsubnet --not 192.168.40." host *.service
User root
IdentityFile ~/.ssh/jails
Hostname %h
ProxyJump bastion.unbl.ink