A Docker container to execute commands via SSH connections.
- Pull down the latest:
docker pull shiphp/simple-ssh - Create a
.envfile with the following fields:USERThe remote connection's username.HOSTThe IP for the remote connection.SCRIPTThe script to run on the remote server.PRIVATE_SSH_KEYYour private SSH key that has remote access to the server.
- Run the script:
docker run --env-file .env shiphp/simple-ssh