ash-cp(1)Ash Manualash-cp(1)

NAME

ash-cp - copy files between the host and a running VM

DESCRIPTION

Copies a file between the host and a running ash VM. The default direction is host to guest; use --from guest for guest to host.

DIRECTORIES

Pass -r or --recursive to copy a directory and its contents. Without it, directory sources are rejected by scp.

VM SELECTION

NAME selects the running VM. The transfer uses that VM's SSH user and vsock CID.

SSH

ash creates or reuses the VM's autoprovisioned SSH identity, installs it through virtle guest-exec, and transfers through OpenSSH scp over the generated SSH wrapper.

-v or --verbose prints the completed host/guest source and destination after a successful transfer.

EXAMPLES

ash cp work ./notes.txt ~/workspace/notes.txt
ash cp -r work ./src ~/workspace/src
ash cp --from guest work ~/workspace/result.txt ./result.txt

Generated from ash Cmdliner manpage metadata.

ash-cp(1)ash 0.1.9ash-cp(1)