Repository navigation
Releases
Releases · gokusan92/SSHAutomator
SSHAutomator v1.0.1 Release
SSHAutomator Release Notes
Version 1.0.1
Major Changes
Architecture Improvements
- Restructured project layout for better code organization and maintainability
- Introduced worker pool pattern for controlled concurrent execution
- Added context-aware operations for better resource management
- Implemented proper error handling and propagation
Performance Enhancements
- Added connection pooling to manage SSH connections efficiently
- Implemented controlled concurrency with configurable limits
- Optimized memory usage with proper resource cleanup
- Improved I/O handling with efficient buffer management
New Features
- Added
-concurrentflag to control maximum simultaneous connections - Implemented graceful shutdown mechanism
- Added connection timeout handling
- Enhanced error reporting with detailed failure information
- Added support for context cancellation
Technical Changes
Code Structure
- Split monolithic main.go into modular packages:
config: Configuration handlingexecutor: Connection pool and worker managementsshhandler: SSH client operations
SSH Client Improvements
- Created dedicated SSH client type for better encapsulation
- Added proper resource cleanup with defer statements
- Implemented timeout configurations for connections
- Enhanced error handling with proper error wrapping
Configuration
- Moved configuration to dedicated package
- Added validation for configuration options
- Introduced default values based on system capabilities
- Improved command-line argument handling
Error Handling
- Implemented comprehensive error collection
- Added detailed error context for debugging
- Proper error propagation through the stack
- Enhanced error reporting for network issues
Breaking Changes
Command Line Interface
- Changed server list file format to space-separated fields (was comma-separated)
- Added mandatory port field in server configuration
- Modified authentication method specification in server list
API Changes
- Removed direct SSH session handling from main package
- Changed server details structure to include port
- Modified authentication method handling
- Changed script execution flow to use context
Security Improvements
- Added connection timeouts to prevent hanging
- Improved key handling and validation
- Enhanced password handling security
- Added proper resource cleanup
Documentation
- Completely revised README with detailed usage instructions
- Added security considerations section
- Included performance optimization guidelines
- Added troubleshooting guide
- Enhanced code comments and documentation
Migration Guide
Server List Format
Old format:
host,username,password
host,username,keyfile,/path/to/key
New format:
host username password
host username keyfile /path/to/key
Command Line Usage
Old:
shautomator -script script.shautomator -host HOST -username USER -password PASSNew:
sshautomator -script script.txt -host HOST -port PORT -username USER -password PASS -concurrent 5Dependencies
- Updated golang.org/x/crypto/ssh to latest version
- Added context support dependencies
- Added sync package utilization
- Enhanced error handling packages
Bug Fixes
- Fixed resource leaks in SSH sessions
- Resolved connection hanging issues
- Fixed concurrent execution problems
- Improved error handling in network failures
- Enhanced memory management
Known Issues
- InsecureIgnoreHostKey is still used for host verification
- Large file transfers might need additional optimization
- Very long-running sessions might need manual timeout adjustment
SSHAutomator v1.0.0 Release
SSHAutomator Release v1.0.0
Release Notes
We are excited to announce the release of SSH Automator v1.0.0, a powerful tool for automating the execution of scripts and commands on remote servers over SSH.
Key Features
- Execute scripts or commands on remote servers using SSH
- Support for multiple servers with parallel execution
- Accept command-line arguments for server details (host, port, username, password/key file)
- Read script and server details from files
- Handle SSH connection and command execution
Known Issues
- Error handling may need further improvement to provide more detailed information to users.
Installation
To install the SSH Automator, follow these steps:
- Download the appropriate binary for your operating system from the Releases page.
- Extract the downloaded archive.
- Move the
ssh-automatorbinary to a directory in your system's PATH.
Usage
Refer to the README.md file for detailed usage instructions.
Reporting Issues
If you encounter any issues or have suggestions for improvements, please create an issue on the GitHub repository.