Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #239825

Re: deprecated options in openssh

From Adam Weremczuk <adamw@matrixscience.com>
Newsgroups linux.debian.user
Subject Re: deprecated options in openssh
Date 2021-09-10 12:00 +0200
Message-ID <CVLua-3fR-5@gated-at.bofh.it> (permalink)
References <CMLWq-ce-5@gated-at.bofh.it> <CMLWq-ce-9@gated-at.bofh.it> <CMNlx-1gN-25@gated-at.bofh.it> <CMOAW-1W9-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi all,

Weeks later it happened again and I'm not any less puzzled:

/var/log/syslog

Aug 28 10:12:30 deb10 sshd[145]: /etc/ssh/sshd_config line 25: 
Deprecated option UsePrivilegeSeparation
Aug 28 10:12:30 deb10 sshd[145]: /etc/ssh/sshd_config line 28: 
Deprecated option KeyRegenerationInterval
Aug 28 10:12:30 deb10 sshd[145]: /etc/ssh/sshd_config line 29: 
Deprecated option ServerKeyBits
Aug 28 10:12:30 deb10 sshd[145]: /etc/ssh/sshd_config line 49: 
Deprecated option RSAAuthentication
Aug 28 10:12:30 deb10 sshd[145]: /etc/ssh/sshd_config line 57: 
Deprecated option RhostsRSAAuthentication
Aug 28 10:12:31 deb10 sshd[207]: /etc/ssh/sshd_config line 25: 
Deprecated option UsePrivilegeSeparation
Aug 28 10:12:31 deb10 sshd[207]: /etc/ssh/sshd_config line 28: 
Deprecated option KeyRegenerationInterval
Aug 28 10:12:31 deb10 sshd[207]: /etc/ssh/sshd_config line 29: 
Deprecated option ServerKeyBits
Aug 28 10:12:31 deb10 sshd[207]: /etc/ssh/sshd_config line 49: 
Deprecated option RSAAuthentication
Aug 28 10:12:31 deb10 sshd[207]: /etc/ssh/sshd_config line 57: 
Deprecated option RhostsRSAAuthentication

Not matching what's in the file:

awk 'NR==25' /etc/ssh/sshd_config

awk 'NR==28' /etc/ssh/sshd_config

awk 'NR==29' /etc/ssh/sshd_config
# Lifetime and size of ephemeral version 1 server key

etc.

The service hasn't been restarted around that time and the file hasn't 
been modified for even longer:

systemctl status ssh.service | grep running
    Active: active (running) since Wed 2021-08-18 17:36:45 UTC; 3 weeks 
1 days ago

stat /etc/ssh/sshd_config
   File: /etc/ssh/sshd_config
   Size: 3864            Blocks: 9          IO Block: 4096 regular file
Device: 34h/52d Inode: 94834       Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/ root)
Access: 2021-09-10 06:48:08.449310637 +0000
Modify: 2021-07-06 07:15:34.222154544 +0000
Change: 2021-07-06 07:15:34.222154544 +0000
  Birth: -

This is a Proxmox LXC container and I thought that maybe the syslog 
entries were for some reason referring to the master host, but not!

awk 'NR==25' /etc/ssh/sshd_config
# Logging
awk 'NR==28' /etc/ssh/sshd_config

awk 'NR==29' /etc/ssh/sshd_config
# Authentication:

What's going on here? :)

Regards,
Adam

On 16/08/2021 18:27, David Wright wrote:
> On Mon 16 Aug 2021 at 16:49:16 (+0100), Adam Weremczuk wrote:
>> Installation and configuration was straightforward:
>>
>> sudo apt install logwatch
>>
>> /etc/cron.daily/00logwatch
>> #execute
>> /usr/sbin/logwatch --detail low --mailto xxx@domain.com
>>
>> The master config file /usr/share/logwatch/default.conf/logwatch.conf
>> left with defaults.
>>
>> Only one report per day arrives. Same as for the other dozen of Debian
>> (mostly older) machines it's installed on and which don't show this
>> issue.
> I presume logwatch is watching your logs, so the first place to check
> is the actual logs themselves.
>
> My guess (it's no more than that) is that one of the other dozen
> machines that you occasionally log into has a slightly different
> configuration from this one, perhaps older, with options that are
> now considered less secure (but no extra lines inserted).
>
> The options that are commented out in each machine's config file are
> the defaults being used by the server, so they /are/ in force.
> When you connect to a remote machine's server, I'm assuming it gets
> told what the remote's options are, and it's remonstrating about them.
> (The fact that options are commented will be irrelevant, therefore.)
>
> Note that I may have all this in reverse: the remote machine could be
> complaining about yours, and sending you the log by email. So, as I say,
> the first step is to find the log entries that logwatch has watched for.
>
> Cheers,
> David.
>

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

deprecated options in openssh Adam Weremczuk <adamw@matrixscience.com> - 2021-08-16 16:40 +0200
  Re: deprecated options in openssh Greg Wooledge <greg@wooledge.org> - 2021-08-16 16:40 +0200
    Re: deprecated options in openssh Adam Weremczuk <adamw@matrixscience.com> - 2021-08-16 18:10 +0200
      Re: deprecated options in openssh David Wright <deblis@lionunicorn.co.uk> - 2021-08-16 19:30 +0200
        Re: deprecated options in openssh Adam Weremczuk <adamw@matrixscience.com> - 2021-09-10 12:00 +0200
          Re: deprecated options in openssh Greg Wooledge <greg@wooledge.org> - 2021-09-10 14:20 +0200
            Re: deprecated options in openssh David Wright <deblis@lionunicorn.co.uk> - 2021-09-10 16:20 +0200
            Re: deprecated options in openssh Adam Weremczuk <adamw@matrixscience.com> - 2021-09-10 17:30 +0200
              Re: deprecated options in openssh Greg Wooledge <greg@wooledge.org> - 2021-09-10 18:50 +0200
                Re: deprecated options in openssh Adam Weremczuk <adamw@matrixscience.com> - 2021-09-10 19:30 +0200
                Re: deprecated options in openssh Greg Wooledge <greg@wooledge.org> - 2021-09-10 19:40 +0200
              Re: deprecated options in openssh David Wright <deblis@lionunicorn.co.uk> - 2021-09-10 19:00 +0200
                Re: deprecated options in openssh Greg Wooledge <greg@wooledge.org> - 2021-09-10 19:20 +0200
                Re: deprecated options in openssh Greg Wooledge <greg@wooledge.org> - 2021-09-10 19:30 +0200
                Re: deprecated options in openssh David Wright <deblis@lionunicorn.co.uk> - 2021-09-11 21:50 +0200
                Re: deprecated options in openssh Greg Wooledge <greg@wooledge.org> - 2021-09-11 22:10 +0200
                Re: deprecated options in openssh David Wright <deblis@lionunicorn.co.uk> - 2021-09-13 19:30 +0200
                Re: deprecated options in openssh Adam Weremczuk <adamw@matrixscience.com> - 2021-09-10 19:30 +0200
                Re: deprecated options in openssh Dan Ritter <dsr@randomstring.org> - 2021-09-10 21:00 +0200
                Re: deprecated options in openssh rhkramer@gmail.com - 2021-09-11 00:00 +0200
                Re: deprecated options in openssh David Wright <deblis@lionunicorn.co.uk> - 2021-09-11 21:50 +0200
      Re: deprecated options in openssh Anssi Saari <as@sci.fi> - 2021-08-17 10:50 +0200

csiph-web