Merge pull request #1399 from mariano-dagostino/1372-ssh
Make possible to login via ssh using the laradock user.
This commit is contained in:
commit
805d7f94e8
|
@ -1094,7 +1094,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.
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<a name="Change-the-MySQL-Version"></a>
|
<a name="Change-the-MySQL-Version"></a>
|
||||||
|
|
|
@ -55,6 +55,7 @@ ENV PGID ${PGID}
|
||||||
|
|
||||||
RUN groupadd -g ${PGID} laradock && \
|
RUN groupadd -g ${PGID} laradock && \
|
||||||
useradd -u ${PUID} -g laradock -m laradock && \
|
useradd -u ${PUID} -g laradock -m laradock && \
|
||||||
|
usermod -p "*" laradock && \
|
||||||
apt-get update -yqq
|
apt-get update -yqq
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
|
|
|
@ -55,6 +55,7 @@ ENV PGID ${PGID}
|
||||||
|
|
||||||
RUN groupadd -g ${PGID} laradock && \
|
RUN groupadd -g ${PGID} laradock && \
|
||||||
useradd -u ${PUID} -g laradock -m laradock && \
|
useradd -u ${PUID} -g laradock -m laradock && \
|
||||||
|
usermod -p "*" laradock && \
|
||||||
apt-get update -yqq
|
apt-get update -yqq
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
|
|
|
@ -54,7 +54,8 @@ ENV PUID ${PUID}
|
||||||
ENV PGID ${PGID}
|
ENV PGID ${PGID}
|
||||||
|
|
||||||
RUN groupadd -g ${PGID} laradock && \
|
RUN groupadd -g ${PGID} laradock && \
|
||||||
useradd -u ${PUID} -g laradock -m laradock
|
useradd -u ${PUID} -g laradock -m laradock && \
|
||||||
|
usermod -p "*" laradock
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# SOAP:
|
# SOAP:
|
||||||
|
|
|
@ -54,7 +54,9 @@ ENV PUID ${PUID}
|
||||||
ENV PGID ${PGID}
|
ENV PGID ${PGID}
|
||||||
|
|
||||||
RUN groupadd -g ${PGID} laradock && \
|
RUN groupadd -g ${PGID} laradock && \
|
||||||
useradd -u ${PUID} -g laradock -m laradock
|
useradd -u ${PUID} -g laradock -m laradock && \
|
||||||
|
usermod -p "*" laradock
|
||||||
|
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# SOAP:
|
# SOAP:
|
||||||
|
|
Loading…
Reference in New Issue