Repository navigation
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