From: "Peter Müller" <peter.mueller@link38.eu>
To: development@lists.ipfire.org
Subject: [PATCH 2/3] SSH client configuration: Hash known_hosts entries
Date: Wed, 12 Sep 2018 19:50:44 +0200 [thread overview]
Message-ID: <20180912175045.7636-2-peter.mueller@link38.eu> (raw)
In-Reply-To: <20180912175045.7636-1-peter.mueller@link38.eu>
[-- Attachment #1: Type: text/plain, Size: 893 bytes --]
By default, entries in ~/.ssh/known_hosts disclosure on which servers a
user as access to, allowing detailled attack against these servers.
Depending on the affected infrastructure, this might be a privacy
problem, too.
Force SSH to hash new entries in known_hosts (existing ones will not be
converted) to avoid permission disclosure.
Signed-off-by: Peter Müller <peter.mueller(a)link38.eu>
---
config/ssh/ssh_config | 3 +++
1 file changed, 3 insertions(+)
diff --git a/config/ssh/ssh_config b/config/ssh/ssh_config
index b36909f85..9f7121c76 100644
--- a/config/ssh/ssh_config
+++ b/config/ssh/ssh_config
@@ -33,4 +33,7 @@ Host *
# ensure only allowed authentication methods are used
PreferredAuthentications publickey,keyboard-interactive,password
+ # hash entries in ~/.ssh/known_hosts file to avoid permission disclosure
+ HashKnownHosts yes
+
# EOF
--
2.16.4
next prev parent reply other threads:[~2018-09-12 17:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-12 17:50 [PATCH 1/3] SSH client configuration: Use Protocol version 2 only Peter Müller
2018-09-12 17:50 ` Peter Müller [this message]
2018-09-12 17:50 ` [PATCH 3/3] SSH client configuration: Prefer server host keys in different order Peter Müller
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=20180912175045.7636-2-peter.mueller@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