FreeBSD Bugzilla – Attachment 212017 Details for
Bug 244492
/etc/rc.d/sshd: Warn about missing ssh-keygen only when necessary
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
sshd service patch
sshd.patch (text/plain), 716 bytes, created by
Mateusz Piotrowski
on 2020-02-28 10:33:14 UTC
(
hide
)
Description:
sshd service patch
Filename:
MIME Type:
Creator:
Mateusz Piotrowski
Created:
2020-02-28 10:33:14 UTC
Size:
716 bytes
patch
obsolete
>Index: sshd >=================================================================== >--- sshd (revision 358425) >+++ sshd (working copy) >@@ -45,18 +45,19 @@ > ;; > esac > >+ if [ -f "${keyfile}" ] ; then >+ info "$ALG host key exists." >+ return 0 >+ fi >+ > if [ ! -x /usr/bin/ssh-keygen ] ; then > warn "/usr/bin/ssh-keygen does not exist." > return 1 > fi > >- if [ -f "${keyfile}" ] ; then >- info "$ALG host key exists." >- else >- echo "Generating $ALG host key." >- /usr/bin/ssh-keygen -q -t $alg -f "$keyfile" -N "" >- /usr/bin/ssh-keygen -l -f "$keyfile.pub" >- fi >+ echo "Generating $ALG host key." >+ /usr/bin/ssh-keygen -q -t $alg -f "$keyfile" -N "" >+ /usr/bin/ssh-keygen -l -f "$keyfile.pub" > } > > sshd_keygen()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 244492
: 212017