Alipne ssh server
### Dependencies
- [![2.0.0](https://badge.imagelayers.io/alpine.svg)](https://imagelayers.io/?images=alpine:edge 'edge') alpine:edge
### Image size
[![Latest](https://badge.imagelayers.io/danielguerra/apline-sshd.svg)](https://imagelayers.io/?images=danielguerra/alpine-sshd:latest 'latest') danielguerra/alpine-sshd
### Instructions
create a ssh volume
`bash
$ docker create -v /root/.ssh --name ssh-container danielguerra/ssh-container /bin/true
`
create your own keys
`bash
$ docker run --volumes-from ssh-container alpine:edge ssh-keygen -q
`
add your pub key to authorized_keys file
`bash
$ docker run --volumes-from ssh-container alpine:edge cp /root/.ssh/id_rsa.pub /root/.ssh/authorized_keys
`
create a copy in your directory (pwd)
`bash
$ docker run --volumes-from ssh-container -v $(pwd):/backup alpine:edge cp -R /root/.ssh/* /backup
`
start ssh server
```bash
docker run -d -p 9022:22 --volumes-from ssh-container --name=alpine-sshd --hostname=alpine-sshd danielguerra/alpine-sshd
`
ssh to your server
```bash
ssh -i id_rsa -p 9022 root@<dockerhost>
`