Skip to content

JeanMaximilienCadic/docker-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

FROM ubuntu:latest       

RUN apt update -y && apt install openssh-server nano sudo -y && service ssh start

RUN useradd -m foo && echo "foo:foo" | chpasswd && adduser foo sudo
RUN echo "foo     ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
USER foo

WORKDIR /home/foo/.ssh

COPY authorized_keys /home/foo/.ssh/

WORKDIR /workspace

CMD sudo service ssh start && /bin/bash

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors