After making changes as
ssh-copy-id -i /home/oozie/.ssh/id_rsa.pub email@example.com
getting permission issue in oozie workflow
oozi-W@ssh-34f1] Error starting action [ssh-34f1]. ErrorType [NON_TRANSIENT], ErrorCode [AUTH_FAILED], Message [AUTH_FAILED: Not able to perform operation [ssh -o PasswordAuthentication=no -o KbdInteractiveDevices=no -o StrictHostKeyChecking=no -o ConnectTimeout=20 abc.com mkdir -p oozie-oozi/0000000-201209133111712-oozie-oozi-W/ssh-34f1--ssh/ ] | ErrorStream: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password,keyboard-interactive).
@syedshakir This is most probably ssh is not setup properly. You can try below steps.
On the Oozie Server host run the command:
ps -ef| grep oozie
Identify the user that runs the Oozie server. For example, the user is oozie
Modify /etc/passwd file to edit the user oozie
Note: This will enable the user oozie to login.
In the command prompt switch user as oozie:
su - oozie
Verify that the user is switched by executing the command:
Note:Do not give any password. This generates Public and Private Key for passwordless authentication and saves it in the Oozie user's home directory.
Execute ssh-copy-id to copy the public key to user’s home directory in the remote host. This user will be the one that runs ssh commands in remote host:
Test by executing ssh without a password to confirm a successful authentication:
Run the Oozie workflow and verify success.
View solution in original post