Browse Source

Add ssh.sh and fix assets folder

Andrea Fazzi 1 năm trước cách đây
mục cha
commit
f1251c68c1
2 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 2 1
      Dockerfile
  2. 3 0
      ssh.sh

+ 2 - 1
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 

+ 3 - 0
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