Skip to content

Can't login after openssh 9.8p1-1 upgrade, MUST restart sshd

Description:

After upgrading openssh, the service seems broken. sshd immediatly closes the connection and logs:

sshd: -R not supported here

The client just sees:

kex_exchange_identification: read: Connection reset by peer

This is fixed by restarting sshd, but for remote systems this MUST be done in the same session where the upgrade took place, otherwise you'll be locked out.

It'd probably be good to add a post_upgrade warning about this.

Additional info:

  • package version(s): openssh 9.8p1-1
  • config and/or log files: sshd: -R not supported here
  • link to upstream bug report, if any: could not spot the change causing this in ChangeLog

Steps to reproduce:

  1. Upgrade openssh to 9.8p1-1 with sshd running (keep session open)
  2. Try to login => connection reset by peer
  3. Restart sshd
  4. Try to login => works again
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information