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 <noreply@anthropic.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user