In my CTF environment, if I want to access an application in a server, I have to perform SSH. Here's what it looks like:

(my terminal) ssh username@ssh_ip
enter password

The steps start to annoy me because if I have to access the same application more than once, I have to perform these steps multiple times.
Thus, I want to create a script that does this automatically, like './run_everything', which will autorun everything and immediately brings me to the application CLI instantly.
What kind of python library that can do this? I'm not asking for someone to make it for me, but more like asking for advice like what libraries to use and stuff.
Try python api of iTerm2 or use some packages like paramiko.
Script for SSH OverTheWire