Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
This works for local accounts only on the ASA, you cannot getting into enable mode directly via SSH using Radius or LDAP. This is because this is a security device.