PSMP for SSH broken by a crypto algorithm update that disables RSA-SHA1
Symptom
PSMP for SSH broken by a crypto algo update that disables RSA-SHA1. S far as we can tell, this failure only affect ssh Keys stored on the PCloud tool. This is the ansible commands run for the update:
Delete “enctypes” and “allow_weak_crypto” from krb5_file
Create symlink to Crypto Policy so krb5 uses system wide crypto policy.
source_conf: '/etc/crypto-policies/back-ends/krb5.config'
crypto_policy: '/etc/krb5.conf.d/crypto-policies'
We create these two files:
cbc_file: '/etc/crypto-policies/policies/modules/NO-CBC.pmod'
cipher@tls = -*-CBC
cipher = -*-CBC
cipher@ssh = -*-CBC
hmac_file: '/etc/crypto-policies/policies/modules/NO-HMAC-SHA1.pmod'
mac@ssh = -HMAC-SHA1
Update Crypto Policy:
update-crypto-policies --set DEFAULT:NO-CBC:NO-SHA1:NO-HMAC-SHA1
Environment
14.6 Privilege Cloud Privilege Cloud PSM
Cause
The NO-SHA1 policy is an "all-or-nothing" control. In many OpenSSH versions, the standard RSA key exchange (labeled ssh-rsa) relies on SHA-1 for the signature. By disabling SHA-1 at the OS level, the system loses the ability to process these RSA signatures, causing the key authentication to fail and fall back to PAM.
Resolution
To maintain a high security posture while restoring PSMP functionality, we recommend the following approach:
-Retain Hardening: Keep NO-CBC and NO-HMAC-SHA1 enabled.
-Restore Signature Compatibility: Remove NO-SHA1 from the system-wide crypto policy. This restores the system's ability to use RSA keys.
-Enforce Modern Data Encryption: Explicitly restrict allowed Ciphers and MACs to modern algorithms (SHA-2 and GCM/CTR) via the crypto policy. This ensures that even though the OS can speak SHA-1, the SSH service is forbidden from using it for session encryption.
Note on Configuration: Please ensure that any manual Ciphers or MACs entries in /etc/ssh/sshd_config are commented out or aligned with this policy, as manual entries will override the system-wide crypto policy.