ssh container with yubikey access
513
Docker image with SSH and yubikey installed
Run the compose file below with your id and secret from https://upgrade.yubico.com/getapikey as an environment variable including the tokenid
once running the container will make new id_rsa and id_rsa.pub files (to ssh out as i use this as a jump server) and add them to the volume listed below
I am absolutely not a security expert but i believe most of this file is standard practice. Please us at your own risk
version: "3"
services:
yubi:
container_name: yubi
environment:
- TOKENID=*** #remove last 32 digits from a OTP from yubikey
- CLIENTID=*** # from https://upgrade.yubico.com/getapikey/
- SECRETKEY=*** # as above
volumes:
- /mnt/disk1/docker/yubikeyssh:/root # to persist ssh keys created
image: samabsalom/ssh-with-yubikey:latest
ports:
- 34:22/tcp
network_mode: bridge
Content type
Image
Digest
Size
97.7 MB
Last updated
about 5 years ago
docker pull samabsalom/ssh-with-yubikey