Skip to content
This repository has been archived by the owner on Aug 6, 2019. It is now read-only.

smeets/deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deploy - insecure parallel ssh script execution

Synopsis

deploy [--stdout] [--target file] [--script file]

Usage of deploy.exe:
  -script file
        path to the shell script file (default "script.sh")
  -stdout
        pipe remote shell stdout to current shell stdout
  -target file
        path to the file with JSON-formatted targets (default "target.json")

How it works

1 - SSH into #target 2 - Execute #script 3 - Done!

target

[
    {
        "username": "not-root",
        "host": "fridge.local:22",
        "auth": {
            "method": "pki",
            "artifact": "~/.ssh/id_rsa"
        }
    }
]
  • username: login user (w/interactive shell)
  • host: (hostname|ip-addres):port
  • auth: authentication scheme
    • method: pki or password
    • artifact: path/to/id_rsa or user password

note: it is not possible to verify the host key at the moment

script

The script file contains the shell commands you want to invoke on each target.

About

concurrent ssh tool written in go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published