mirror of
https://github.com/napnap75/multiarch-docker-images.git
synced 2026-02-05 10:28:59 +01:00
Added the sshd server
This commit is contained in:
7
sshd/etc/cont-init.d/init-host-keys.sh
Executable file
7
sshd/etc/cont-init.d/init-host-keys.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! -f "/config/host_keys/ssh_host_rsa_key" ] ; then
|
||||
mkdir -p /config/host_keys
|
||||
ssh-keygen -t ed25519 -f /config/host_keys/ssh_host_ed25519_key -N "" < /dev/null
|
||||
ssh-keygen -t rsa -b 4096 -f /config/host_keys/ssh_host_rsa_key -N "" < /dev/null
|
||||
fi
|
||||
Reference in New Issue
Block a user