fix(zhulan): keep SSH Match directives portable

This commit is contained in:
冰朔 2026-08-13 18:47:50 +08:00
commit 65784b4388
2 changed files with 1 additions and 1 deletions

View file

@ -87,7 +87,6 @@ Match User zhulan-codex
X11Forwarding no
PermitTunnel no
PermitTTY yes
PermitUserEnvironment no
EOF
chmod 0644 "$SSHD_DROPIN.tmp"
mv "$SSHD_DROPIN.tmp" "$SSHD_DROPIN"

View file

@ -70,6 +70,7 @@ class CodexRemoteContractTest(unittest.TestCase):
self.assertIn('"$REMOTE_HOME/.codex/AGENTS.md"', installer)
self.assertIn("'/.zhulan/'", installer)
self.assertIn("AllowTcpForwarding no", installer)
self.assertNotIn("PermitUserEnvironment no", installer)
self.assertIn("central_push_credentials\": false", installer)
self.assertNotIn("NOPASSWD", installer)