Egit Refuses to accept id_rsa

前端 未结 5 2628
后悔当初
后悔当初 2021-02-20 18:39

I\'m a first time git user trying to setup egit in Eclipse so I can continue to easily code through Eclipse. Problem is, every time I try to clone a repo through egit, it gives

5条回答
  •  攒了一身酷
    2021-02-20 19:02

    if you get a prompt for the passphrase but eclipse doesn't accept the passphrase, try the following:

    set the GIT_SSH environment variable to your ssh client e.g. by adding

    export GIT_SSH=/usr/bin/ssh
    

    to your .bash_rc

    on Mac OSX, open terminal and type:

    cd
    mkdir .MacOSX
    cd .MacOSX
    echo "" > environment.plist
    open environment.plist
    

    add a KEY=GIT_SSH with VALUE=/usr/bin/ssh and save the file.

    After relogin to your account, it should work.

提交回复
热议问题