protomodule/sshis a container for running OpenSSH client.
- Provide a containerized SSH client
- Harden default settings for OpenSSH
- Additional features like automatic key scanning
- Fun terminal output
Run this image with docker as you would run ssh:
docker run --rm -it protomodule/ssh root@localhostOr supply a custom private key:
docker run -e SSH_PRIVATE_KEY="$(cat ~/.ssh/id_ed25519)" --rm -it protomodule/ssh root@localhostTo copy a file with SCP you also need to mount a volume into the container:
docker run -e SSH_PRIVATE_KEY="$(cat ~/.ssh/id_ed25519)" -v $(pwd):/local --rm protomodule/ssh scp /local/test.txt root@localhost:/tmp/test.txtOptions for scanning may be provided as environment variables:
SSH_PRIVATE_KEY... Provide a custom private key for authenticationKNOWN_HOST... Automatically perform keyscan on this hostKNOWN_PORT... Use non default port for this hostQUIET... Minimize terminal output