Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
support rsa for some env
  • Loading branch information
956237586 authored Dec 6, 2024
1 parent 16fccd3 commit 71c7801
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion workspace-ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 71c7801

Please sign in to comment.