From 9b328cce1f4f0e95e61189658700376fe6ab89a0 Mon Sep 17 00:00:00 2001 From: Mariano D'Agostino Date: Mon, 26 Feb 2018 09:52:50 -0300 Subject: [PATCH 1/2] Make possible to log in via ssh using the laradock user --- workspace/Dockerfile-56 | 1 + workspace/Dockerfile-70 | 1 + workspace/Dockerfile-71 | 3 ++- workspace/Dockerfile-72 | 4 +++- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/workspace/Dockerfile-56 b/workspace/Dockerfile-56 index 4bd0e63..8e34fe9 100644 --- a/workspace/Dockerfile-56 +++ b/workspace/Dockerfile-56 @@ -55,6 +55,7 @@ ENV PGID ${PGID} RUN groupadd -g ${PGID} laradock && \ useradd -u ${PUID} -g laradock -m laradock && \ + usermod -p "*" laradock && \ apt-get update -yqq ##################################### diff --git a/workspace/Dockerfile-70 b/workspace/Dockerfile-70 index 2bdc600..1a6f877 100644 --- a/workspace/Dockerfile-70 +++ b/workspace/Dockerfile-70 @@ -55,6 +55,7 @@ ENV PGID ${PGID} RUN groupadd -g ${PGID} laradock && \ useradd -u ${PUID} -g laradock -m laradock && \ + usermod -p "*" laradock && \ apt-get update -yqq ##################################### diff --git a/workspace/Dockerfile-71 b/workspace/Dockerfile-71 index 246b3d5..acd39be 100644 --- a/workspace/Dockerfile-71 +++ b/workspace/Dockerfile-71 @@ -54,7 +54,8 @@ ENV PUID ${PUID} ENV PGID ${PGID} RUN groupadd -g ${PGID} laradock && \ - useradd -u ${PUID} -g laradock -m laradock + useradd -u ${PUID} -g laradock -m laradock && \ + usermod -p "*" laradock ##################################### # SOAP: diff --git a/workspace/Dockerfile-72 b/workspace/Dockerfile-72 index 1099373..8252de3 100644 --- a/workspace/Dockerfile-72 +++ b/workspace/Dockerfile-72 @@ -54,7 +54,9 @@ ENV PUID ${PUID} ENV PGID ${PGID} RUN groupadd -g ${PGID} laradock && \ - useradd -u ${PUID} -g laradock -m laradock + useradd -u ${PUID} -g laradock -m laradock && \ + usermod -p "*" laradock + ##################################### # SOAP: From cbd0f1de79105f1ed9aba86a750b2eda55c2f9bc Mon Sep 17 00:00:00 2001 From: Mariano D'Agostino Date: Mon, 26 Feb 2018 10:25:15 -0300 Subject: [PATCH 2/2] Update documentation to explain how to login via ssh using the laradock user --- DOCUMENTATION/content/documentation/index.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/DOCUMENTATION/content/documentation/index.md b/DOCUMENTATION/content/documentation/index.md index a069386..a78d982 100644 --- a/DOCUMENTATION/content/documentation/index.md +++ b/DOCUMENTATION/content/documentation/index.md @@ -1092,7 +1092,18 @@ To change the default forwarded port for ssh: ... ``` +Then login using: +```bash +ssh -o PasswordAuthentication=no \ + -o StrictHostKeyChecking=no \ + -o UserKnownHostsFile=/dev/null \ + -p 2222 \ + -i workspace/insecure_id_rsa \ + laradock@localhost +``` + +To login as root, replace laradock@locahost with root@localhost.