mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 17:43:14 +00:00
Just wait for ssh-keygen, just in case
This commit is contained in:
parent
e2ff9163bc
commit
1ceb588ad4
@ -28,7 +28,6 @@ if ! grep console= /proc/cmdline >& /dev/null; then
|
||||
else
|
||||
tmux a <> /dev/tty1 >&0 2>&1 &
|
||||
fi
|
||||
(ssh-keygen -A; /usr/sbin/sshd) &
|
||||
TRIES=0
|
||||
touch /etc/confluent/confluent.info
|
||||
cd /sys/class/net
|
||||
@ -68,6 +67,7 @@ else
|
||||
ip route add default via $v4gw
|
||||
fi
|
||||
fi
|
||||
ssh-keygen -A
|
||||
for pubkey in /etc/ssh/ssh_host*key.pub; do
|
||||
certfile=${pubkey/.pub/-cert.pub}
|
||||
privfile=${pubkey%.pub}
|
||||
@ -75,7 +75,6 @@ for pubkey in /etc/ssh/ssh_host*key.pub; do
|
||||
echo HostCertificate $certfile >> /etc/ssh/sshd_config
|
||||
echo HostKey $privfile >> /etc/ssh/sshd_config
|
||||
done
|
||||
killall sshd
|
||||
/usr/sbin/sshd
|
||||
while :; do
|
||||
bash
|
||||
|
Loading…
Reference in New Issue
Block a user