scp on vm returns "too many authentication failures"

I did the usual routine of transferring my local files to vm using scp:

  1. fly ssh issue --org nappy --agent --dotssh (I only invoked this when ssh is expired in 24hrs)
  2. fly proxy 8888:22 --app app-db
  3. scp -P 8888 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null my/local/file.txt root@localhost:/file.txt
  4. then returns
Received disconnect from 127.0.0.1 port 8888:2: too many authentication failures
Disconnected from 127.0.0.1 port 8888
scp: Connection closed

Or if I use this scp -P 8888 -i ~/.ssh/fly_key my/local/file.txt root@localhost:/file.txt where fly_key is also generated from fly ssh issue and still the same error is displayed.

Question: how long should I wait before I can scp my file(s)? I this right approach to solve my problem?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.