IT Log

Record various IT issues and difficulties.

How to resolve the inconsistency between OpenSSL version and SSL version shown by `ssh -V` after a successful upgrade


To resolve the inconsistency between OpenSSL version and SSL version shown by ssh V after a successful upgrade, follow these steps:

  1. Verify Displayed Versions:
  2. Run ssh V to check both OpenSSH and OpenSSL versions.

  3. Check Executable Paths:

  4. Use which ssh and which openssl to ensure they point to the correct, updated binaries.

  5. Inspect Package Managers:

  6. For Debian/Ubuntu: Check with dpkg getselections | grep openssh.
  7. For RedHat/CentOS: Use rpm q opensshserver openssl.

  8. Review Configuration Files:

  9. Examine /etc/ssh/sshd_config for directives that might affect SSL/TLS, such as Ciphers or Protocol settings.

  10. Assess Upgrade Process:

  11. Confirm if the upgrade was done via package manager ( apt, yum) or manually, ensuring all necessary files were updated.

  12. Check Library Dependencies:

  13. Use commands like ldd /usr/bin/ssh | grep ssl to verify which OpenSSL libraries are being used.

  14. Reinstall Affected Packages (if needed):

  15. If discrepancies persist, reinstall OpenSSH and OpenSSL using your system’s package manager.

  16. Consult Logs for Errors:

  17. Review upgrade logs in /var/log/apt/ or /var/log/yum/, and check SSH server logs post-upgrade for negotiation issues.

By systematically addressing each of these areas, you can identify the root cause of the version inconsistency and take appropriate corrective actions.


, , ,