From owner-freebsd-questions@freebsd.org Mon Feb 17 16:58:14 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 877CE23EE86; Mon, 17 Feb 2020 16:58:14 +0000 (UTC) (envelope-from ozgur@kazancci.com) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48LqtX40klz47TB; Mon, 17 Feb 2020 16:58:12 +0000 (UTC) (envelope-from ozgur@kazancci.com) Received: from webmail.gandi.net (webmail14.sd4.0x35.net [10.200.201.14]) (Authenticated sender: ozgur@kazancci.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPA id AC0A860007; Mon, 17 Feb 2020 16:58:08 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Mon, 17 Feb 2020 19:58:08 +0300 From: =?UTF-8?Q?=C3=96zg=C3=BCr_Kazancci?= To: David Mehler Cc: freebsd-questions , owner-freebsd-questions@freebsd.org Subject: Re: tightening sshd, removing server identification banner In-Reply-To: References: Message-ID: <036b6d54c51d5d7ae9934415b60369f8@kazancci.com> X-Sender: ozgur@kazancci.com User-Agent: Roundcube Webmail/1.3.8 X-Rspamd-Queue-Id: 48LqtX40klz47TB X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of ozgur@kazancci.com designates 217.70.183.195 as permitted sender) smtp.mailfrom=ozgur@kazancci.com X-Spamd-Result: default: False [-3.42 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[195.183.70.217.rep.mailspike.net : 127.0.0.18]; R_SPF_ALLOW(-0.20)[+ip4:217.70.183.192/28]; RCPT_COUNT_THREE(0.00)[3]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[kazancci.com]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_IN_DNSWL_LOW(-0.10)[195.183.70.217.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:29169, ipnet:217.70.176.0/20, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-1.02)[ip: (-2.26), ipnet: 217.70.176.0/20(-1.58), asn: 29169(-1.28), country: FR(0.00)]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Feb 2020 16:58:14 -0000 Hello David, If you're sure you uncommented these lines, #VersionAddendum none #Banner none and restarted the sshd, then there is no much else left -imho-. A complete removal of SSHD banner (if that's what you're trying to do) requires a manual edit of OpenSSH(d) files&complete complication of it from scratch. Best, Özgür. On 17/02/2020 19:53, David Mehler wrote: > Hello, > > I'm running FreeBSD 12.0. I'm atempting to tighten up my sshd > configuration. I've got things where I want them, except for the > connecting banner. I'm using sshaudit.com to test things and this is > what it's saying for the banner setting: > > Banner:SSH-2.0-OpenSSH_7.8 FreeBSD-20180909 > > I would rather this be set to nothing or at most very minimal. Google > and the sshd_config man page reveals the Banner and VersionAdendum > options. I've set both to none. > > PrintMotd no > #PrintLastLog yes > #VersionAddendum none > #Banner none > > Can anyone tell me how to get the results I am looking for? > > Thanks. > Dave. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"