Skip to content

Instantly share code, notes, and snippets.

@patryk4815
Created June 22, 2020 00:03
Show Gist options
  • Save patryk4815/6170fe47f8edf211c62948c3be08bd35 to your computer and use it in GitHub Desktop.
Save patryk4815/6170fe47f8edf211c62948c3be08bd35 to your computer and use it in GitHub Desktop.
FROM ubuntu:18.04
RUN apt-get -y update && apt-get install -y \
autoconf \
bison \
flex \
gcc \
g++ \
git \
libprotobuf-dev \
libnl-route-3-dev \
libtool \
make \
pkg-config \
protobuf-compiler \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update \
&& apt-get install -y ssh \
build-essential \
gcc \
g++ \
gdb \
clang \
cmake \
rsync \
tar \
python \
&& apt-get clean
RUN ( \
echo 'LogLevel DEBUG2'; \
echo 'PermitRootLogin yes'; \
echo 'PasswordAuthentication yes'; \
echo 'Subsystem sftp /usr/lib/openssh/sftp-server'; \
) > /etc/ssh/sshd_config_test_clion \
&& mkdir /run/sshd
RUN useradd -m user \
&& yes password | passwd user
CMD ["/usr/sbin/sshd", "-D", "-e", "-f", "/etc/ssh/sshd_config_test_clion"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment