From bd53ef65ec8acc88f58b1b2b36d23afdcd4e546f Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Thu, 3 Aug 2023 01:10:26 +0800 Subject: [PATCH] feat: add sshconfig for k8s masters --- home/linux/desktop/ssh.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/home/linux/desktop/ssh.nix b/home/linux/desktop/ssh.nix index 8ab5cd87..4d2ae668 100644 --- a/home/linux/desktop/ssh.nix +++ b/home/linux/desktop/ssh.nix @@ -41,6 +41,24 @@ Host s500plus HostName 192.168.5.174 Port 22 + + Host k8s-main + HostName 192.168.5.181 + ForwardAgent yes + IdentityFile ~/.ssh/romantic + IdentitiesOnly yes + + Host k8s-data1 + HostName 192.168.5.182 + ForwardAgent yes + IdentityFile ~/.ssh/romantic + IdentitiesOnly yes + + Host k8s-data2 + HostName 192.168.5.183 + ForwardAgent yes + IdentityFile ~/.ssh/romantic + IdentitiesOnly yes ''; }; }