It would be helpful to know what operating system you are using.
I’ve seen similar errors reported on windows, and to date I can’t reproduce the error with either Command Prompt or Powershell, using either Windows Console Host or Windows Terminal.
I found the following method which allows for transfer of single files at a time:
From the local directory containing the fly.toml file:
fly ssh sftp shell
This will start an interactive session where you can navigate, push and pull files within the remote machine.
get FILENAME
will download a file into your current directory.
It would be nice to have a recursive option to download a folder with all its files more easily though…
To replace a file, if the PUT command does not overwrite, you can first fly ssh console, then rm FILENAME to remove the file. Then add the new file via fly ssh sftp shell again.