Applies to · OpenWrt 25.12.6 · OpenSSH · PAM
What to check
Check the required files by reverse lookup from the active sshd configuration and PAM service name, then verify each item against the backup list and actual backup archives.
Connect over Ethernet and run the following commands in an SSH session on the router.
sysupgrade -l | grep -E 'sshd|pam'
command -v sshd
How to interpret the result
When using sysupgrade -l, search for sshd_config, /etc/pam.d/sshd, and the actual referenced access file. If any are missing, back them up individually; after ensuring all files are accounted for, restore from the backup system. Establish a new session using existing keys, and retain the old session until verification is complete.
Verify and recover
Restore the backup on a spare system. Open a fresh SSH session using the existing key and verify the intended PAM policy before closing the original session. Store backups privately.
Related guide · What to back up separately from OpenWrt UCI configuration
Comments