Closed SaajidMaarif closed 6 years ago
@SaajidMaarif, getting the same error have you ever found the solution?
Have you tried to restart the SSH Daemon? It worked in my case.
@bruno-barbosa Tried it on another ec2 instance with the same steps and it worked. So i'm not really sure what the issue was.
Metadata:
Hi,
I've followed all the instructions and also been through the troubleshooting steps in the previous issues raised but I'm unable to get this to work.
I have attached the iam-ssh-policy to the instance. (Attached to an existing instance, didn't create a new ec2 instance)
The import_users script runs properly and creates the users
When i run ./authorized_keys_command.sh "saajid" as "nobody" manually, it returns the SSH key.
the following lines have been added by the install.sh script to sshd_config: AuthorizedKeysCommand /opt/authorized_keys_command.sh AuthorizedKeysCommandUser nobody
Verbose output of ssh command on client machine below
What am I missing, please help.
Thanks, Saajid