diff --git a/Dockerfile b/Dockerfile index 1327c19..edb8e0c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM ubuntu -COPY assets assets +RUN mkdir -p /home/ubuntu/playground +COPY assets/* /home/ubuntu/playground/ RUN apt update && apt install openssh-server sudo -y RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1000 test diff --git a/ssh.sh b/ssh.sh new file mode 100755 index 0000000..ff27301 --- /dev/null +++ b/ssh.sh @@ -0,0 +1,3 @@ +#!/bin/bash +ssh-keygen -f "/home/pop-os/.ssh/known_hosts" -R "[localhost]:2222" +ssh -p 2222 test@localhost