From 233939d77d11eabf2fec89239b91bb673e80fc0f Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Mon, 29 Jun 2026 10:57:36 +0100 Subject: [PATCH] ssh: auto-forward yolo ports 47100/47101 Add LocalForward entries for 47100/47101 to the yolo host, and set LogLevel=ERROR to silence the INFO-level "channel open failed: connection refused" noise when a forwarded port has nothing listening yet. Co-Authored-By: Claude Opus 4.8 --- home/common/programs/ssh.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/home/common/programs/ssh.nix b/home/common/programs/ssh.nix index 1c9ec11..1756a90 100644 --- a/home/common/programs/ssh.nix +++ b/home/common/programs/ssh.nix @@ -29,6 +29,13 @@ _: "yolo" = { HostName = "10.7.10.2"; + + # Quiet the "channel N: open failed: connect failed: Connection + # refused" noise (logged at INFO) when a forwarded port has nothing + # listening yet. ExitOnForwardFailure stays off (default), so the + # connection still succeeds over idle forwards. + LogLevel = "ERROR"; + RemoteForward = [ { bind.port = 9222; @@ -36,6 +43,20 @@ _: host.port = 9222; } ]; + + # Auto-forward localhost:47100/47101 to the same ports on yolo. + LocalForward = [ + { + bind.port = 47100; + host.address = "localhost"; + host.port = 47100; + } + { + bind.port = 47101; + host.address = "localhost"; + host.port = 47101; + } + ]; }; }; };