Skip to content

Commit

Permalink
Improved comments in host keys management section
Browse files Browse the repository at this point in the history
  • Loading branch information
dmotte committed Jul 9, 2023
1 parent cbb9039 commit 3783dd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -ex

################################################################################

# Get host keys from /ssh-host-keys
# Get host keys from the volume
rm -f /etc/ssh/ssh_host_*_key /etc/ssh/ssh_host_*_key.pub
cp /ssh-host-keys/ssh_host_*_key /etc/ssh/ 2>/dev/null || true
cp /ssh-host-keys/ssh_host_*_key.pub /etc/ssh/ 2>/dev/null || true
Expand All @@ -17,7 +17,7 @@ chown root:root /etc/ssh/ssh_host_*_key /etc/ssh/ssh_host_*_key.pub
chmod 600 /etc/ssh/ssh_host_*_key
chmod 644 /etc/ssh/ssh_host_*_key.pub

# Copy the (previously missing) generated host keys to /ssh-host-keys
# Copy the (previously missing) generated host keys to the volume
cp -n /etc/ssh/ssh_host_*_key /ssh-host-keys/ 2>/dev/null || true
cp -n /etc/ssh/ssh_host_*_key.pub /ssh-host-keys/ 2>/dev/null || true

Expand Down

0 comments on commit 3783dd4

Please sign in to comment.