This article explains the possible reasons for unable to login to a device after RE replacement.
After RE replacement, while applying the configuration and committing, you lose access to the device.
OLD PASSWORDS:
SYSTEM LOGIN CONFIG:
AUTHENTICATION ORDER:
TACACS ISSUE:
Similarly, there could be RADIUS server related issues.