diff options
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 |