Skip to content

Releases: windvalley/gossh

Gossh Version v1.15.1

16 Jan 12:30
eb42f56
Compare
Choose a tag to compare

Changed

  • Optimize config template and config file.
  • Optimize pubkeys authentication.
  • Optimize some flags description.
  • Optimize Makefile.

Gossh Version 1.15.0

10 Jan 12:25
4e68444
Compare
Choose a tag to compare

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.0

03 Jan 06:49
b96b055
Compare
Choose a tag to compare

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.0

29 Dec 08:10
84e4866
Compare
Choose a tag to compare

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.0

09 Mar 09:55
a629f78
Compare
Choose a tag to compare

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.

    $ gossh command -h

    Output:

    Before:

    Execute commands on target hosts.
    
    Usage:
      gossh command [flags]
    ...
    

    Now:

    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 🌱

23 Feb 03:19
fc36d54
Compare
Choose a tag to compare

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 ⛷ ◯‍◯‍◯‍◯‍◯

14 Feb 02:41
16b359b
Compare
Choose a tag to compare

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 🧨

31 Jan 04:11
a45e14f
Compare
Choose a tag to compare

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 🧨

29 Jan 07:56
5883dc0
Compare
Choose a tag to compare

Added

  • Support group hosts, group vars and group combination in inventory file.

    Example inventory file:

# This is a hosts inventory file for gossh

# no group hosts
alias_name_node1 host=node1.sre.im
node100.sre.im

# hosts group
[webserver]
alias_name_node2 host=192.168.33.12 port=8022 user=vagrant password=123456 keys=~/.ssh/id_dsa,~/.ssh/id_rsa 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.

Gossh Version 1.8.0 ❄

25 Jan 04:28
87c52c2
Compare
Choose a tag to compare

Added

Allow adding variables to inventory(host file), available variables:

host
port 
user 
password 
keys 
passphrase

Example host file:

alias_name_node1 host=node1.sre.im
alias_name_node2 host=192.168.33.12 port=8022 user=vagrant password=123456 keys=~/.ssh/id_dsa,~/.ssh/id_rsa passphrase=xxx
node3.sre.im user=zhangsan password=GOSSH-AES256:9cfe499133b69a6c7fc62b5b6ba72d3d8dfb4d0e7987170a40c5d50bb5d71e19
node[06-10].sre.im port=9022 user=lisi password=654321
192.168.1.[1-3]
...

For details at (#27).