From f1251c68c1c5c80e7923d36e467f980d1ca14391 Mon Sep 17 00:00:00 2001 From: Andrea Fazzi Date: Thu, 16 Feb 2023 08:17:21 +0100 Subject: [PATCH] Add ssh.sh and fix assets folder --- Dockerfile | 3 ++- ssh.sh | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 ssh.sh 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