From: "Peter Müller" <peter.mueller@link38.eu>
To: development@lists.ipfire.org
Subject: Re: [PATCH v2 2/2] use custom SSH client configuration in LFS file
Date: Mon, 10 Sep 2018 17:48:50 +0200 [thread overview]
Message-ID: <144a9115-0b4d-adda-3bf9-fde0ed2a0677@link38.eu> (raw)
In-Reply-To: <d5c7ba671f4e5f06d5b19eb5849fce243d1c7fbc.camel@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 2014 bytes --]
Hello Michael,
> Hello,
>
> did you notice that this file is excluded from being updated on existing
> installations?
no - but I should have thought about that. :-\
>
> How do we handle any custom changes from users here?
The only possibility of keeping the user's settings is to move existing
SSH client configurations to a new location, replace /etc/ssh/ssh_config
with this one and include the version before.
However, I strongly advise against this. (For example, some settings
in the original config might revert hardening options, causing no security
benefit after all.)
Since it is "just" the client configuration, I consider overwriting it
the best procedure. Of course, there has to be a yellow warning box in
the release notes, but it is better than no hardening at all.
>
> I merged this for new installations already.
Great. SSH server configuration will follow.
Best regards,
Peter Müller
>
> -Michael
>
> On Mon, 2018-09-10 at 16:29 +0200, Peter Müller wrote:
>> Include OpenSSH client configuration file during build.
>>
>> Signed-off-by: Peter Müller <peter.mueller(a)link38.eu>
>> ---
>> lfs/openssh | 5 +++++
>> 1 file changed, 5 insertions(+)
>>
>> diff --git a/lfs/openssh b/lfs/openssh
>> index a88b2d126..0e6acc227 100644
>> --- a/lfs/openssh
>> +++ b/lfs/openssh
>> @@ -100,5 +100,10 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
>> -e 's|^#\?HostKey /etc/ssh/ssh_host_ed25519_key$$||' \
>> -e 's|^#\?HostKey /etc/ssh/ssh_host_rsa_key$$|HostKey
>> /etc/ssh/ssh_host_ecdsa_key\nHostKey /etc/ssh/ssh_host_ed25519_key\nHostKey
>> /etc/ssh/ssh_host_rsa_key|' \
>> /etc/ssh/sshd_config
>> +
>> + # install custom OpenSSH client configuration
>> + install -v -m 644 $(DIR_SRC)/config/ssh/ssh_config \
>> + /etc/ssh/ssh_config
>> +
>> @rm -rf $(DIR_APP)
>> @$(POSTBUILD)
>
--
Microsoft DNS service terminates abnormally when it recieves a response
to a DNS query that was never made. Fix Information: Run your DNS
service on a different platform.
-- bugtraq
prev parent reply other threads:[~2018-09-10 15:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-10 14:29 [PATCH v2 1/2] add hardened SSH client configuration Peter Müller
2018-09-10 14:29 ` [PATCH v2 2/2] use custom SSH client configuration in LFS file Peter Müller
2018-09-10 15:37 ` Michael Tremer
2018-09-10 15:48 ` Peter Müller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=144a9115-0b4d-adda-3bf9-fde0ed2a0677@link38.eu \
--to=peter.mueller@link38.eu \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox