I have to monitor 8 to 9 servers. I am thinking of creating a python script that will create a menu to login to any servers and after using ssh to login to the server, can I be able to execute commands in the server as the 'user' specified in the ssh. Please see the command below in python. I am importing 'os' to execute the bash commands.
server_login = "ssh {}@{}".format('user_name','10.111.0.10')
os.system(server_login)
ssh <user>@<host>dossh <user>@<host> <command>. If you don't specify a command then it will do an interactive login.