I am trying to prepopulate a volume with some files, but all my attempts until now have failed:
- Connecting through SFTP from Windows (with or without WSL). This seems to be a known issue.
- Using rsync from a VM running the latest Ubuntu 22.04. Used
fly ssh issue --agent, followed by
fly proxy 8080:22, followed by
rsync --rsh='ssh -p8080' foo root@localhost:/data/foo. Rsync fails with the message:
rsync error: protocol incompatibility (code 2) at compat.c(600)
Now I am looking for a workaround and I thought it might be possible to spin up a local web server and serve the files I want to transfer, then use curl from a shell in my application (through
fly ssh console) to download them. Is it possible to connect from the application to my local machine and access its webserver? If so, how?