Add ssh.sh and fix assets folder

This commit is contained in:
Andrea Fazzi 2023-02-16 08:17:21 +01:00
parent 98b94410cf
commit f1251c68c1
2 changed files with 5 additions and 1 deletions

View file

@ -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

3
ssh.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
ssh-keygen -f "/home/pop-os/.ssh/known_hosts" -R "[localhost]:2222"
ssh -p 2222 test@localhost