1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-10 11:10:27 +02:00
dockerfiles/openssh
2017-05-08 07:05:07 +08:00
..
keys add openssh 2016-07-01 22:22:21 +08:00
docker-compose.yml add openssh 2016-07-01 22:22:21 +08:00
docker-entrypoint.sh add openssh 2016-07-01 22:22:21 +08:00
Dockerfile swith to new domain: easypi.pro 2017-05-08 07:05:07 +08:00
README.md add openssh 2016-07-01 22:22:21 +08:00

openssh

docker-compose.yml

openssh:
  image: vimagick/openssh
  hostname: alpine
  ports:
    - "2222:22"
  volumes:
    - ./keys:/root/.ssh/keys
  restart: always

up and running

$ cd ~/fig/openssh/

$ tree keys
├── joe.pub
├── kev.pub
└── tom.pub

$ docker-compose up -d

ssh login

$ ssh -p 2222 root@server