Transferring File from/to VM
You can simply drag files to the VS Code window after connecting to remote host (VM) to transfer file to VM. To download file from VM back to the host system, just right click file in VS Code window and select "Download".
You can also use scp to transfer file.
For MacOS/Linux (Intel/x86) user:
Host->VM: scp localpath default:remote path
VM->Host: scp default:remote path localpath

SCP SSH File Transfer
For MacOS (ARM64/M1/M2) user:
Host->VM scp -P 31500 localpath [email protected]:remote path
VM->Host: scp -P 31500 [email protected]:remote path localpath
For Windows user, please just stick to the VS Code GUI way.
Last updated