Add ssh.sh and fix assets folder
This commit is contained in:
parent
98b94410cf
commit
f1251c68c1
2 changed files with 5 additions and 1 deletions
|
@ -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
3
ssh.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
ssh-keygen -f "/home/pop-os/.ssh/known_hosts" -R "[localhost]:2222"
|
||||
ssh -p 2222 test@localhost
|
Loading…
Reference in a new issue