Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Accepted Answer
Do you have any rate limiting happening on port 22? Try this:
iptables -nL|grep "22\|ssh"
Cheers
Hey there yea I did! UFW was rate limiting port 22 so I just turned it off and it works perfectly now, thanks!
Thank you for this! I was stumped on it for ages. My script was doing the same thing - ssh-ing multiple times to execute various commands but there was no indication in the error message that rate limiting was the cause.
One way to solve it without turning off rate limiting is move all your commands into a bash script and then execute like this:
ssh user@droplet 'bash -s' < ./foo.sh