Skip to content

Releases

SSHAutomator v1.0.1 Release

Choose a tag to compare

@gokusan92 gokusan92 released this 04 Feb 21:11
f5ae11a

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 -concurrent flag 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 handling
    • executor: Connection pool and worker management
    • sshhandler: 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 PASS

New:

sshautomator -script script.txt -host HOST -port PORT -username USER -password PASS -concurrent 5

Dependencies

  • 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

Choose a tag to compare

@gokusan92 gokusan92 released this 14 Apr 13:42
80c67d0

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:

  1. Download the appropriate binary for your operating system from the Releases page.
  2. Extract the downloaded archive.
  3. Move the ssh-automator binary 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.