chore(perms): allow ssh/scp/sftp/rsync for agent deployment tasks

Adds to permissions.allow:
- ssh, scp, sftp (remote exec + file transfer)
- ssh-add, ssh-keygen, ssh-copy-id (key management)
- rsync (fast file sync)

No Dockerfile change -> no rebuild needed; settings.json is bind-mounted
into the container. After git pull, /exit + restart claude to reload.
This commit is contained in:
gongzhiyong
2026-04-25 02:18:47 +08:00
parent c90de4e4ee
commit 8ab440154b
+7
View File
@@ -2,6 +2,13 @@
"$schema": "https://json.schemastore.org/claude-code-settings.json", "$schema": "https://json.schemastore.org/claude-code-settings.json",
"permissions": { "permissions": {
"allow": [ "allow": [
"Bash(ssh:*)",
"Bash(scp:*)",
"Bash(sftp:*)",
"Bash(ssh-add:*)",
"Bash(ssh-keygen:*)",
"Bash(ssh-copy-id:*)",
"Bash(rsync:*)",
"Bash(git status*)", "Bash(git status*)",
"Bash(git diff*)", "Bash(git diff*)",
"Bash(git log*)", "Bash(git log*)",