A small Alpine linux with SSH client.
root-user can be changed when starting the container using --env$ docker run --rm \
--publish=1337:22 \
--env ROOT_PASSWORD=MyRootPW123 \
titom73/ssh-server
After the container is up you are able to ssh in it as root with the in --env provided password for root-user.
$ ssh [email protected] -p 1337
$ docker run --rm \
--publish=1337:22 \
--env KEYPAIR_LOGIN=true \
--volume /path/to/authorized_keys:/root/.ssh/authorized_keys \
titom73/ssh-server
After the container is up you are able to ssh in it as root with a private-key which matches the provided public-key in authorized_keys for root-user.
$ ssh root@localhost -p 1337 -i /path/to/private_key
topology:
nodes:
management:
image: titom73/ssh-server
mgmt_ipv4: 192.168.1.10
kind: linux
ports:
- 1122:22
Publish feature in containerlab is not working since my-socket.io has been rebranded border0
Username and password are configured like this:
rootpassword123Content type
Image
Digest
sha256:0f3fd4fb1…
Size
5.7 MB
Last updated
almost 4 years ago
docker pull titom73/ssh-server