From 2def734a6f4db3b364245b10ea9a97ef92904383 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Tue, 15 Feb 2022 15:13:44 +0100
Subject: Update SSH config for work
---
.ssh/config.d/mintlab-lab | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
(limited to '.ssh')
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
--
cgit v1.1