HUB
Sign inSign up

xiaotech/ssh-server

By xiaotech

•Updated over 4 years ago

openssh server for alpine

Image
0

90

xiaotech/ssh-server repository overview

⁠run

docker run -d -p22:22 xiaotech/ssh-server:alpine

⁠modify from source

FROM alpine

MAINTAINER xiaojun ([email protected])

RUN echo "http://mirrors.aliyun.com/alpine/latest-stable/main/" > /etc/apk/repositories && \
        echo "http://mirrors.aliyun.com/alpine/latest-stable/community/" >> /etc/apk/repositories && \
        apk update && \
        apk add --no-cache openssh tzdata && \
        ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

RUN sed -i "s/#PermitRootLogin.*/PermitRootLogin yes/g" /etc/ssh/sshd_config && \
         ssh-keygen -A && \
         echo "root:toor" | chpasswd

EXPOSE 22

CMD ["/usr/sbin/sshd", "-D"]
Tag summary
Recent tags
Content type
Image
Digest
sha256:ebb132de0…
Size
7.6 MB
Last updated
over 4 years ago
docker pull xiaotech/ssh-server:alpine