A simple command-line tool written in V to manage your SSH config file. This tool allows you to easily add, remove, and list SSH hosts configurations without manually editing the SSH config file.
- Add new SSH hosts with custom settings
- List all configured SSH hosts
- Remove existing SSH hosts
- Automatic config file management
- Simple command-line interface
- V programming language (latest version)
- Git
git clone https://github.com/JaphetSamuel/vsash
cd vsash
v .vsash-c add -n myserver -h example.com -u myuser -p 2222 -i ~/.ssh/id_rsaParameters:
-n, --name: Host name (required)-h, --hostname: Host address (required)-u, --user: Username (required)-p, --port: Port number (optional, default: 22)-i, --identity: Path to identity file (optional)
vsash-c listThis will display all configured hosts with their settings.
vsash-c remove -n myserverParameters:
-n, --name: Host name to remove (required)
The tool automatically manages your SSH config file located at ~/.ssh/config. A backup of the existing configuration is created before any modifications.
.
├── src/
│ ├── main.v
│ └── config_manager.v
├── README.md
└── v.mod
Contributions are welcome! Here are some ways you can contribute:
- Report bugs
- Suggest new features
- Submit pull requests
Please ensure your pull requests are well-documented and include appropriate test cases.
- Edit existing host configurations
- Import/Export configurations
- Backup management
- Host configuration validation
- Support for additional SSH config options
- Configuration groups
This project is licensed under the MIT License
- The V programming language team
- Contributors to the project
If you encounter any issues or have questions, please file an issue on the GitHub repository.