aboutsummaryrefslogtreecommitdiff
path: root/.ssh/config.d/mintlab-lab
blob: 9cca614991f0c981d8e05dd7b74b65e4e4dde1c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Host *.lab.zsys.nl
	IdentityFile ~/.ssh/id.d/%u@%L-ed25519.pub
	IdentitiesOnly yes
	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

Host bastion.lab.zsys.nl
	Hostname bastion-host-zaaksysteem-lab

# vim: set ft=sshconfig :