Gossh Version 1.15.22026-10-08
Fixed
- Support rsa-sha2-256 and rsa-sha2-512 signature algorithms for RSA public key authentication, so that RSA keys work with SSH servers that have disabled the legacy ssh-rsa (SHA-1) signature algorithm, such as OpenSSH 8.8+ (#45).
- Fix the bug that subcommand script marks a failed execution as SUCCESS when the script exits with a non-zero status (#37).
- Fix the build failure on AIX (#35).
- Fix the problem of reading empty script name for subcommand script.
- Fix subcommand command to ensure the session is properly closed.
- Fix the vault and ssh password prompt failure The handle is invalid on Windows.
- Fix that the vault-encrypted passphrase does not work for default and proxy identity files.
Changed
- Upgrade golang.org/x/crypto to v0.39.0 and bump other Go packages to recent versions. Go 1.23+ is now required to build gossh.
Gossh Version 1.15.12024-01-16
Changed
- Optimize config template and config file.
- Optimize pubkeys authentication.
- Optimize some flags description.
- Optimize Makefile.
Gossh Version 1.15.02024-01-10
Added
Add dangerous commands detection feature for subcommand command and script:
- Add global flag: -B, --run.command-blacklist for specifying dangerous commands.
Default dangerous commands: ["rm", "reboot", "halt", "shutdown", "init", "mkfs", "mkfs.*", "umount", "dd"]
- Add flag -n, --no-safe-check for subcommands command and script to disable dangerous commands detection.
- Add option run.command-blacklist to config file for subcommand config.
Changed
- gossh fetch flags have been changed:
Before: -t, --tmp-dir string directory of target hosts for storing temporary zip file (default "$HOME")
After: -T, --tmp-dir string directory for storing temporary zip file on target hosts, only useful if the -z flag is used (default "$HOME")
- Add short flag -t for --timeout.command:
Before: --timeout.command int
After: -t, --timeout.command int
- Optimize help usage information for subcommands.
- Optimize output messages and enrich debug log information.
Gossh Version 1.14.02024-01-03
Added
Add flag -z, --zip for subcommand fetch.
Changed
Improve the files transfer efficiency of the subcommand fetch.
The subcommand fetch no longer uses zip compression by default. If you want to continue using zip compression, you can add the -z flag to the command line.
Gossh Version 1.13.02023-12-29
Added
Add flag -z, --zip for subcommand push:
``
-z, --zip enable zip files ('unzip' must be installed on target hosts)
`
Changed
Improve the files transfer efficiency of the subcommand push.
The subcommand push no longer uses zip compression by default. If you want to continue using zip compression, you can add the -z` flag to the command line.
Gossh Version 1.12.02022-03-09
Changed
- Optimize help usage information. Add neccessary positional arguments to Usage info for subcommands: command, script, push, fetch, vault encrypt, vault decrypt, vault encrypt-file, vault decrypt-file, vault view.
E.G.
``sh
$ gossh command -h
`
Output:
Before:
`text
Execute commands on target hosts.
Usage:
gossh command [flags]
...
`
Now:
`text
Execute commands on target hosts.
Usage:
gossh command [HOST...] [flags]
...
`
- Flag -i,--auth.identity-files changed to -I,--auth.identity-files,
and flag -H,--hosts.inventory changed to -i,--hosts.inventory`.
Gossh Version 1.11.1 🌱2022-02-23
Added
- Add documentation.
Changed
- Optimize examples of subcommand fetch.
Fixed
- Subcommand config: hosts.file -> hosts.inventory.
- configs/gossh.yaml: hosts.file -> hosts.inventory.
Gossh Version 1.11.0 ⛷ ◯◯◯◯◯2022-02-14
Changed
- Optimize subcommand config.
- Update configuration demo file configs/gossh.yaml.
- Optimize examples of subcommands.
- Change default tmp dir for subcommand fetch.
Default value of flag -t, --tmp-dir changed from /tmp to $HOME.
- Optimize the priority of the ssh authentication methods.
Old: password > pubkey > ssh-agent,
New: ssh-agent > pubkey > password.
For details at (#31).
- Optimize description of flag --timeout.command.
Fixed
- Fix a bug about ssh authentication. The bug description:
When attempting ssh-agent fails, pubkey authentication is skipped and password authentication is used directly.
- Fix a bug about ssh-agent authentication method about proxy server.
Gossh Version 1.10.0 🐯 Happy Chinese New Year 🧨2022-01-31
### Added
- Add feature that getting vault password from an executable file. For details at (#28).
Changed
- Flag -L, --hosts.list changed to -l, --hosts.list.
- Flag -l, --run.lang changed to -L, --host.lang.
- Optimize help description of flag -V, --auth.vault-pass-file.
Gossh Version 1.9.0 🧨2022-01-29
Added
- Support group hosts, group vars and group combination in inventory file.
Example inventory file:
``text
This is a hosts inventory file for gossh
no group hosts
aliasnamenode1 host=node1.sre.im
node100.sre.im
hosts group
[webserver]
aliasnamenode2 host=192.168.33.12 port=8022 user=vagrant password=123456 keys=~/.ssh/iddsa,~/.ssh/idrsa passphrase=xxx
node[06-07].sre.im port=9022 user=lisi password=654321
node08.sre.im
host vars for group webserver
[webserver:vars]
port=8033
user=wangwu
[dbserver]
192.168.1.10
[dbserver:vars]
user=vagrant2
password=abcdefg
hosts group project1 has hosts that defined in group dbserver and group webserver
[project1:children]
dbserver
webserver
`
For details at (#29).
Changed
- Flag -H, --hosts.file changed to -H, --hosts.inventory`.