From 0d2138970e08a832de361069e4bddfe7230c4a46 Mon Sep 17 00:00:00 2001 From: wo2wz <189177184+wo2wz@users.noreply.github.com> Date: Sun, 26 Oct 2025 19:22:21 -0400 Subject: [PATCH] ssh: remove redundant ksshaskpass config, rotate ips the local ips will become outdated again in 2 minutes --- modules/nixos/programs/ssh.nix | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/modules/nixos/programs/ssh.nix b/modules/nixos/programs/ssh.nix index 019d802..8259b58 100755 --- a/modules/nixos/programs/ssh.nix +++ b/modules/nixos/programs/ssh.nix @@ -5,22 +5,15 @@ startAgent = true; enableAskPassword = true; extraConfig = " - IdentityFile /home/wo2w/.ssh/ssh-key + IdentityFile /home/wo2w/.ssh/yubikey User wo2w + Port 8743 Host gameserver - Hostname 192.168.2.221 - Port 22 + Hostname 192.168.2.112 Host Swordsmachine - Hostname 192.168.2.84 - Port 8743 + Hostname 192.168.2.74 Host Earthmover - Hostname 192.168.2.87 - Port 8743 + Hostname 192.168.2.175 "; }; - - environment = { - systemPackages = if config.services.desktopManager.plasma6.enable then with pkgs; [ kdePackages.ksshaskpass ] else []; - variables.SSH_ASKPASS_REQUIRE = "prefer"; - }; } \ No newline at end of file