diff options
author | Patrick Spek <p.spek@tyil.nl> | 2022-02-15 15:13:44 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2022-02-15 15:13:44 +0100 |
commit | 2def734a6f4db3b364245b10ea9a97ef92904383 (patch) | |
tree | 5c894b78a59954fbbc06a7fa0c272172bb254bdc /.ssh | |
parent | 4d6fb85e0cdf6e327e6d49b99f84450061b695ce (diff) |
Update SSH config for work
Diffstat (limited to '.ssh')
-rw-r--r-- | .ssh/config.d/mintlab-lab | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/.ssh/config.d/mintlab-lab b/.ssh/config.d/mintlab-lab index ef1428b..fbb472f 100644 --- a/.ssh/config.d/mintlab-lab +++ b/.ssh/config.d/mintlab-lab @@ -1,6 +1,13 @@ Host *.lab.zsys.nl IdentityFile ~/.ssh/id.d/%u@%L-ed25519.pub - ProxyCommand zs-ec2-ssh -P default -k "$HOME/.ssh/id.d/$USER@$(hostname -s)-ed25519.pub" -p "%p" -u "%r" -- "$(zs-ec2-id -P default %h)" + ProxyCommand zs-ec2-ssh -P default -k "$HOME/.ssh/id.d/$USER@$(hostname -s)-ed25519.pub" -p "%p" -u "%r" -- "$(zs-ec2-id -P default %h | head -n 1)" + StrictHostKeyChecking no + User mintlab + UserKnownHostsFile /dev/null + +Host *.lab.ec2 + IdentityFile ~/.ssh/id.d/%u@%L-ed25519.pub + ProxyCommand zs-ec2-ssh -P default -k "$HOME/.ssh/id.d/$USER@$(hostname -s)-ed25519.pub" -p "%p" -u "%r" -- "$(echo %h | awk -F. '{print $1}')" StrictHostKeyChecking no User mintlab UserKnownHostsFile /dev/null |