Permission denied (publickey,gssapi-keyex,gssapi-with-mic) on openshift

前端 未结 11 1302
既然无缘
既然无缘 2021-02-03 23:52

I am having issues with committing changes to my gear. I have tried to run rhc setup, I also deleted my .ssh folder and executed rhc setup again but that also didnt work.

11条回答
  •  耶瑟儿~
    2021-02-03 23:54

    please check if you have changed to another account.

    i encountered this problem when my account changed to root.

    I am using ubuntu.

    I solved this problem by the following cmds

    rm ~/.openshift/ -rf
    rm ~/.ssh/* -rf
    rhc setup
    

    and i encountered the following error:

    chmod: 更改".git/FETCH_HEAD" 的权限: 不允许的操作
    

    solved by :

    sudo chmod 777 .git/FETCH_HEAD
    

    then:

    git pull
    

    got:

    Already up-to-date.
    

    everything goes find.

提交回复
热议问题