I'm using a VPS based on Ubuntu 16.04 that comes set up with UFW. One default rule of UFW limits the number of SSH connections (and given the number of attempts I see in the auth.log file, this is a good thing that I do no want to remove).
However this makes it difficult to write scripts that use remote commands to manage the server since these will typically create many connections (one per command).
So is there a way to lift that limit for a handful of trusted IPs?
Eventually figured it out:
where
nn.nn.nn.nn
should be replaced by the adequate IP of course.