update ssh key.
Some checks failed
Deploy Docker Images / Docusaurus build and Server deploy (push) Failing after 4m14s
Some checks failed
Deploy Docker Images / Docusaurus build and Server deploy (push) Failing after 4m14s
This commit is contained in:
parent
4cb66b3dcf
commit
8fc9c8b84b
@ -23,7 +23,7 @@ RUN mkdir /var/run/sshd \
|
|||||||
&& sed -i 's/#Port 22/Port 1022/' /etc/ssh/sshd_config \
|
&& sed -i 's/#Port 22/Port 1022/' /etc/ssh/sshd_config \
|
||||||
&& sed -i 's/#PubkeyAuthentication yes/PubkeyAuthentication yes/' /etc/ssh/sshd_config \
|
&& sed -i 's/#PubkeyAuthentication yes/PubkeyAuthentication yes/' /etc/ssh/sshd_config \
|
||||||
&& mkdir -p /root/.ssh \
|
&& mkdir -p /root/.ssh \
|
||||||
&& wget https://frp-by1.wwvvww.cn:44048/s/id_rsa_amass_publickey/download -O /root/.ssh/authorized_keys \
|
&& wget https://frp-by1.wwvvww.cn:44048/s/id_ed25519/download -O /root/.ssh/authorized_keys \
|
||||||
&& chmod 600 /root/.ssh/authorized_keys && chown root:root /root/.ssh/authorized_keys
|
&& chmod 600 /root/.ssh/authorized_keys && chown root:root /root/.ssh/authorized_keys
|
||||||
|
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ RUN mkdir /var/run/sshd \
|
|||||||
&& sed -i 's/#Port 22/Port 1022/' /etc/ssh/sshd_config \
|
&& sed -i 's/#Port 22/Port 1022/' /etc/ssh/sshd_config \
|
||||||
&& sed -i 's/#PubkeyAuthentication yes/PubkeyAuthentication yes/' /etc/ssh/sshd_config \
|
&& sed -i 's/#PubkeyAuthentication yes/PubkeyAuthentication yes/' /etc/ssh/sshd_config \
|
||||||
&& mkdir -p /root/.ssh \
|
&& mkdir -p /root/.ssh \
|
||||||
&& wget https://frp-by1.wwvvww.cn:44048/s/id_rsa_amass_publickey/download -O /root/.ssh/authorized_keys \
|
&& wget https://frp-by1.wwvvww.cn:44048/s/id_ed25519/download -O /root/.ssh/authorized_keys \
|
||||||
&& chmod 600 /root/.ssh/authorized_keys && chown root:root /root/.ssh/authorized_keys
|
&& chmod 600 /root/.ssh/authorized_keys && chown root:root /root/.ssh/authorized_keys
|
||||||
|
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ RUN mkdir /var/run/sshd \
|
|||||||
&& sed -i 's/#Port 22/Port 1022/' /etc/ssh/sshd_config \
|
&& sed -i 's/#Port 22/Port 1022/' /etc/ssh/sshd_config \
|
||||||
&& sed -i 's/#PubkeyAuthentication yes/PubkeyAuthentication yes/' /etc/ssh/sshd_config \
|
&& sed -i 's/#PubkeyAuthentication yes/PubkeyAuthentication yes/' /etc/ssh/sshd_config \
|
||||||
&& mkdir -p /root/.ssh \
|
&& mkdir -p /root/.ssh \
|
||||||
&& wget https://frp-by1.wwvvww.cn:44048/s/id_rsa_amass_publickey/download -O /root/.ssh/authorized_keys \
|
&& wget https://frp-by1.wwvvww.cn:44048/s/id_ed25519/download -O /root/.ssh/authorized_keys \
|
||||||
&& chmod 600 /root/.ssh/authorized_keys && chown root:root /root/.ssh/authorized_keys
|
&& chmod 600 /root/.ssh/authorized_keys && chown root:root /root/.ssh/authorized_keys
|
||||||
|
|
||||||
EXPOSE 1022
|
EXPOSE 1022
|
||||||
|
Loading…
Reference in New Issue
Block a user