Cloning from GitHub on Android using Terminal IDE

I tried following the directions here .

And I get the following message:

ssh: connection to git @ github.com: 22 completed There are no auth methods used. fatal: the remote end hung up unexpectedly.

Steps i followed

  • Key made
  • The copied key for github.
  • The verified key worked correctly by running

    ssh -i ~ / .ssh / id_rsa git @ github.com

  • Created ssh-git file in ~ / local / bin /

    exec ssh -i ~ / .ssh / id_rsa "$ @"

  • Make an executable file:

    chmod 755 ~ / local / bin / ssh- git

  • added the following line to ~ / .bashrc

    export GIT_SSH = ~ / local / bin / ssh- git

  • Ran this

    git clone git @ github.com / username /reponame.git

  • And I get the following error:

    ssh: connection to git @ github.com: 22 completed There are no auth methods used. fatal: the remote end hung up unexpectedly.

+7
git android terminal-ide
source share
3 answers

As described here , you can configure cloning via ssh (HTTPS is not supported): firstly, a key without an access code 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 

Secondly, wrap the 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 " $@ " 

Thirdly, some settings in .bashrc . I put it in another file included .bashrc only on Android, so I can use the same .bashrc in other environments:

 export GIT_SSH=~/local/bin/ssh-git export GIT_AUTHOR_NAME="USER NAME" export GIT_AUTHOR_EMAIL=" user@email.address " export GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME export GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL 

Reboot the terminal IDE before these changes can be used.

There is another thread: https://code.google.com/p/terminal-ide/issues/detail?id=26 .

+5
source share

Try cloning the following syntax:

git clone git@github.com :username/reponame

+1
source share

I believe that the IDE terminal has a problem right now when it cannot resolve host names. This means that instead of github.com you should use an IP address also try using git clone https://IP/User/REPO.git

0
source share

All Articles