I want to run multiple commands over ssh (some scp's, some rsync's, and then some ssh commands), but the server has brute force blocking and even though my authentication is fine if I run too many connections in a bash script I get blocked automatically. How can I run the commands I need without getting blocked?
Once possibility: Somebody suggested using ControlMaster in my .ssh/config file so if I open a terminal, open one ssh connection, then all other connections in another terminal won't need to reauthenticate. How can I do that in a bash script? i.e. How do I open one terminal and keep it open till a second terminal runs some commands then close both?