mmatuska / mfsbsd

mfsBSD
http://mfsbsd.vx.sk
BSD 2-Clause "Simplified" License
494 stars 137 forks source link

skip host key generation when they already exist #87

Closed gronke closed 6 years ago

gronke commented 6 years ago

When the SSH host keys are partially provided from customfiles the generation of new host keys fails. When not executed in an interactive shell the dialog to overwrite the existing file cannot be confirmed. With this change the generation attempt is skipped in case the target file already exists.