Im trying to connect to my EC2 instance with SSH and Iḿ getting crazy. I have read this post and tried all user combinations:
AWS ssh access 'Permission denied (
Another thing to check is PermitRootLogin and AllowUsers in /etc/ssh/sshd_config.
PermitRootLogin
AllowUsers
/etc/ssh/sshd_config
This debug1: key_parse_private2: missing begin marker appears even after successful key authorization if your user access restricted.
debug1: key_parse_private2: missing begin marker