Here you can find a few different ways I use to connect to an SSH server. You will find these common strategies on how to connect:
- Use Paramiko to connect to a GCP server that I own. Connection is done through a custom key.
- asyncssh with custom key (later release)
This solution deals with key-based authentication.
- Download this software and extract the zip wherever you like.
- Define your targets either as a Dictionary in the MultiSSH-file or as objects in Main.
- Don't forget to store your keys in a safe place.
- Run the program by running main.py.
- You can specify the command needed for the execution by running:
- python3 main.py <command_goes_here>
Python3 and Paramiko.