SSH: ssh_copy_file moves files between hosts, containers, the sandbox and the chat #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "t3/file-transfer-hosts-sandbox"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
ssh_copy_filetool to move any file up to 25 MB between hosts, containers (via Proxmox'shatbot-pct-exec), the desktop sandbox, and the chatssh_write_filerules: automatic on the user's home/tmp, asks for sensitive paths (SSH keys) and paths outside user control/rootand/tmprequire approvalconnect()function that handles stdin/stdout;exec()and file operations build on itCallContextwith optionalsendFile()callback so plugins and tools can send files to the ownerpct execpassing stdin (untested on the real host)Testing
ssh_copy_filetool moves binary and text files between all four places (host, container, sandbox, chat) and preserves contentssh_write_file: allows writes to home/tmp without asking, blocks SSH key paths and out-of-home paths, respects the owner's "approve all changes" setting per hostssh_read_filedoes)