An SSH client meant to be run in CI services.
Fetch the docker image:
$ docker pull apihackers/remote
and then execute your remote commands:
$ docker run -rm -e SSH_USER -e SSH_HOST -e SSH_KEY -e WORKDIR apihackers/remote run-my-command with params
SSH_USER
: the user to connect with. Default to root
SSH_HOST
: the remote host to connect to
SSH_KEY
: the private ssh key to authenticate with
WORKDIR
: an optionnal directory into which command will be executed
DEBUG
: if set to true, print some debug infos (ie. echo commands)