No description
This repository has been archived on 2026-05-06. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Dockerfile 100%
Find a file
2018-04-29 18:17:16 +02:00
Dockerfile first commit 2018-04-27 15:50:57 +02:00
README.md first commit 2018-04-27 15:50:57 +02:00

Docker ssh-client

This container could be used as replacement for the installable ssh-client package.

Examples

Create a data volume container with private and public key

docker run -it --name sshdata \
  thomass/ssh-client ssh-keygen -t rsa -C "username@machinename"

Create private/public key in another container

docker create --name another_container -v /root/.ssh ubuntu
docker run -it --rm --volumes-from another_container \
  thomass/ssh-client ssh-keygen -t rsa -C "username@machinename"

Copy public key from another container to authorized_key file on server

docker run -it --rm --volumes-from another_container \
  thomass/ssh-client ssh-copy-id -p port <user>@<server-ip>

Licence

The whole repository is licenced under BSD. Please mention following:

github.com/ThomasSteinbach (thomass at aikq.de)