Oozie SSH Action

前端 未结 4 1007
情深已故
情深已故 2021-02-09 01:08

Oozie SSH Action Issue:

Issue: We are trying to run few commands on a particular host machine of our cluster. We chose SSH Action for the same. We have been fa

4条回答
  •  粉色の甜心
    2021-02-09 02:10

    This is a very tricky problem and I could only hack it. I wasnt satisfied with the answer given so here my my version. Following failed for me( I could see in logs )

    ssh -o PasswordAuthentication=no -o KbdInteractiveDevices=no -o StrictHostKeyChecking=no -o ConnectTimeout=20 user@XXX.XX.XX.XXX mkdir -p oozie-oozi/0000067-130808155814753-oozie-oozi-W/mysshjob--ssh/
    

    But if tried the same command but removed KbdInteractiveDevices=no or changed KbdInteractiveDevices=pam it worked

    ssh -o PasswordAuthentication=no -o KbdInteractiveDevices=pam -o StrictHostKeyChecking=no -o ConnectTimeout=20 user@XXX.XX.XX.XXX mkdir -p oozie-oozi/0000067-130808155814753-oozie-oozi-W/mysshjob--ssh/
    

    Anyway I think there was some issue with old ssh key so I tried following and it works

    $ ssh-keygen -t dsa
    $ cat ~/.ssh/id_dsa.pub > ~/.ssh/authorized_keys2
    

提交回复
热议问题