I'm getting this error while trying to run a Rundeck job as a non-root user, the public key is however added to the authorized_keys
of the user in the corresponding home directory
Note: the same set of keys are working fine to execute jobs as non-root users on other servers
SSH_MSG_KEXDH_INIT sent expecting SSH_MSG_KEXDH_REPLY ssh_rsa_verify: signature true Permanently added '' (RSA) to the list of known hosts. SSH_MSG_NEWKEYS sent SSH_MSG_NEWKEYS received SSH_MSG_SERVICE_REQUEST sent SSH_MSG_SERVICE_ACCEPT received Authentications that can continue: publickey,password,keyboard-interactive Next authentication method: publickey Authentications that can continue: password,keyboard-interactive Next authentication method: password Authentications that can continue: keyboard-interactive Next authentication method: keyboard-interactive Login trials exceeds 1 Disconnecting from port 22 SSH command execution error: AuthenticationFailure: Authentication failure connecting to node: "targetnode". Make sure your resource definitions and credentials are up to date. Failed: AuthenticationFailure: Authentication failure connecting to node: "targetnode". Make sure your resource definitions and credentials are up to date. [workflow] finishExecuteNodeStep(targetnode): NodeDispatch: AuthenticationFailure: Authentication failure connecting to node: "targetnode". Make sure your resource definitions and credentials are up to date.
Following is a snap from /var/log/debug on targetnode
Nov 19 11:42:08 targetnode sshd[17870]: [ID 800047 auth.error] error: PAM: Authentication failed for non-rootuser from rundeck_host Nov 19 11:42:08 targetnode sshd[17870]: [ID 800047 auth.error] error: Received disconnect from rundeck_host port 58894:3: com.jcraft.jsch.JSchException: Auth cancel [preauth] Nov 19 11:42:08 targetnode sshd[17870]: [ID 800047 auth.info] Disconnected from authenticating user non-rootuser rundeck_host port 58894 [preauth]
Can you please help/guide what I'm missing here?