Skip to content

Commit 3bc05b0

Browse files
Merge pull request #586 from rgrunber/default-auth-keyfile
Use the default AuthorizedKeysFile value for VS Code SSH support.
2 parents 78de337 + 0cbe59d commit 3bc05b0

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

build/dockerfiles/dev.sshd.Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
3333
RUN 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|' \

build/scripts/sshd.start

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
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
1312
if [ -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
1514
else
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
1716
fi
1817

1918
# start

0 commit comments

Comments
 (0)