SSH into VM - Too many authentication failures

I’ve been connecting to fly VM through SSH via wireguard for quiet some time. I used to run a script that would paste some files on VM from my local computer. Details about the process at the bottom.

But recently I’m getting an error “Received disconnect from APP.INTERNAL port 22:2: too many authentication failures”.
This is happening across multiple apps. And for one of the apps I changed it’s machine too. But it still gets this error.

Is there any way around this?

Thank you.

Process:

  • fly wireguard create
  • fly ssh issue --agent
  • wg-quick up …
  • python script that creates a MUX SSH connection and syncs files via rsync

I don’t have a Fly answer for you, but in SSH terms this often happens if you have a lot of keys on your local machine, and SSH cycles through lots of wrong ones before getting to the correct one. What may be happening is that the SSH server detects lots of wrong attempts in a short space of time, and borks rather than allowing the good one to succeed. The solution is to specify the correct key in the ssh call using -i; I wonder if the relevant call you’re making has an equivalent option.

That makes sense. Thanks.

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