Skip to content

novboy/alpine-sshd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Alipne ssh server

### Dependencies

### 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> `

About

alpine ssh server

Resources

Stars

Watchers

Forks

Packages

No packages published