Managing multiple servers can be a cumbersome task, especially when you have to repeatedly SSH into each one using passwords. SSH Manager is here to make your life easier by allowing you to save server details in a file and effortlessly connect to them using a simple command-line interface.
To get started with SSH Manager, follow these simple steps:
-
Clone the repository:
$ git clone git@github.com:ejancorp/ssh-manager.git
-
Navigate to the project directory:
$ cd ssh-manager
-
Make the script executable:
$ sudo chmod +x ./ssh-manager
Once you have SSH Manager set up, you can start using it to manage your servers. Here's how you can use it:
-
Prepare a YAML file (
servers.yaml
) containing details of your servers. The file should have the following format:servers: - name: Server 1 hostname: example.com username: user port: 22 # Add more servers as needed
-
Run SSH Manager with the path to your YAML file:
$ ssh-manager -f servers.yaml
-
SSH Manager will display a list of servers from your YAML file. Select the server you want to connect to by entering its corresponding number.
-
You will be prompted to enter your SSH password (if required), and SSH Manager will establish the connection for you.
Contributions are welcome! If you have any ideas, suggestions, or improvements, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Special thanks to ejancorp for creating SSH Manager.
If you encounter any issues or need assistance, please don't hesitate to contact us. We're here to help!
Happy server managing! 🚀