I tried following the directions here.
And I keep getting the following message:
ssh: connection to [email protected]:22 exited No auth methods could be used. fatal: The remote end hung up unexpectedly.
Steps I followed
Checked Key was working properly by running
ssh -i ~/.ssh/id_rsa [email protected]
Created the file ssh-git in ~/local/bin/
exec ssh -i ~/.ssh/id_rsa "$@"
Make the file executable:
chmod 755 ~/local/bin/ssh-git
added the following line to ~/.bashrc
export GIT_SSH=~/local/bin/ssh-git
Ran this
git clone [email protected]/username/reponame.git
And I get the following error:
ssh: connection to [email protected]:22 exited No auth methods could be used. fatal: The remote end hung up unexpectedly.
In Version control choose Git from the drop-down menu. Step 2: Then a pop-up box will come. Paste the link in the URL and choose your Directory. Click on the Clone button and you are done.
Quick start Enter local repository name - note that this is not a path since SGit stores all repositories in the same directory on the mobile device. Username - username to use to clone the remote repo. Password - password to use to clone the remote repo. Click the Clone button.
As described here you can set up cloning via ssh (HTTPS is not supported) with: first, a passphrase-less key in ~/.ssh/id_pub
:
mkdir ~/.ssh
dropbearkey -t rsa -f ~/.ssh/id_rsa
dropbearkey -y -f ~/.ssh/id_rsa | sed -n 2p > ~/.ssh/id_rsa.pub
Second, a wrapper script ~/local/bin/ssh-git
and make it executable with chmod +x ~/local/bin/ssh-git
:
#!/data/data/com.spartacusrex.spartacuside/files/system/bin/bash
exec ssh -i ~/.ssh/id_rsa "$@"
Third, some settings in .bashrc
. I have put it in another file included by .bashrc
on Android only, so I can use the same .bashrc
on other environments too:
export GIT_SSH=~/local/bin/ssh-git
export GIT_AUTHOR_NAME="USER NAME"
export GIT_AUTHOR_EMAIL="[email protected]"
export GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
export GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
Restart Terminal IDE before this changes can be used.
There is another thread on this is at https://code.google.com/p/terminal-ide/issues/detail?id=26.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With