File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ RUN chmod 644 /opt/ssh/ssh_host_* /opt/ssh/sshd_config
3232# Use non-privileged port, set user authorized keys, disable strict checks
3333RUN sed -i \
3434-e 's|#Port 22|Port 2022|' \
35- -e 's|AuthorizedKeysFile .ssh/authorized_keys|AuthorizedKeysFile /home/user/ssh/authorized_keys|' \
3635-e 's|#StrictModes yes|StrictModes=no|' \
3736-e 's|#PidFile /var/run/sshd.pid|PidFile /tmp/sshd.pid|' \
3837-e 's|#LogLevel INFO|LogLevel DEBUG3|' \
Original file line number Diff line number Diff line change 88# SPDX-License-Identifier: EPL-2.0
99#
1010
11- rm -rf /home/user/ssh
12- mkdir -p /home/user/ssh
11+ mkdir -p $HOME /.ssh
1312if [ -f /etc/ssh/dwo_ssh_key.pub ]; then
14- cp /etc/ssh/dwo_ssh_key.pub /home/user/ ssh/authorized_keys
13+ cp /etc/ssh/dwo_ssh_key.pub $HOME /. ssh/authorized_keys
1514else
16- cp /opt/ssh/ssh_client_ed25519_key.pub /home/user/ ssh/authorized_keys
15+ cp /opt/ssh/ssh_client_ed25519_key.pub $HOME /. ssh/authorized_keys
1716fi
1817
1918# start
You can’t perform that action at this time.
0 commit comments