From 71c78018f4cc0c95f50ebe8da96290b66a87a638 Mon Sep 17 00:00:00 2001 From: HuangYongliang Date: Fri, 6 Dec 2024 12:20:44 +0800 Subject: [PATCH] Update Dockerfile support rsa for some env --- workspace-ubuntu/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workspace-ubuntu/Dockerfile b/workspace-ubuntu/Dockerfile index e9c54b8..47c4a05 100644 --- a/workspace-ubuntu/Dockerfile +++ b/workspace-ubuntu/Dockerfile @@ -66,7 +66,9 @@ RUN sed -i "s/UsePrivilegeSeparation.*/UsePrivilegeSeparation no/g" /etc/ssh/ssh sed -i "1i\export LESSCHARSET=utf-8" /etc/profile && \ sed -i "1i\export STARTUPDIR=/dockerstartup" /etc/profile && \ sed -i 's/#AllowTcpForwarding yes/AllowTcpForwarding yes/g' /etc/ssh/sshd_config && \ - sed -i 's/#GatewayPorts no/GatewayPorts yes/g' /etc/ssh/sshd_config + sed -i 's/#GatewayPorts no/GatewayPorts yes/g' /etc/ssh/sshd_config && \ + echo "HostKeyAlgorithms +ssh-rsa" >> /etc/ssh/sshd_config.d/rsa.conf && \ + echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /etc/ssh/sshd_config.d/rsa.conf #config nvm ENV NODE_VERSION=v20.17.0