question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cloning SSH repos seem to fail

See original GitHub issue

I had problems getting the example to run in my own code, constantly getting error authenticating:. Checked out the project (revision 5d371ae0) and ran the tests (quit after finishing the Clone tests).

  Clone
    ✓ can clone with http (4566ms)
    ✓ can clone with https (4469ms)
    1) can clone with ssh
    ✓ can clone with ssh while manually loading a key (13553ms)
    ✓ can clone with git (3616ms)
^C

  15 passing (32s)
  1 failing

  1) Clone can clone with ssh:
     Error: error authenticating: 

This fails on both Ubuntu 14.10 and on OS X 10.10.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
tbranyencommented, Feb 2, 2015

I just pulled latest and tried again with my machine, and it works as expected. Unfortunately unless we can reproduce a bug in our CI environment, we have to chalk this up to environmental error.

Ensure you have something like this in your enivornment runtime configuration file, like .bashrc:

# SSH Agent
SSH_ENV="$HOME/.ssh/environment"

function start_agent {
     echo "Initialising new SSH agent..."
     /usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
     echo succeeded
     chmod 600 "${SSH_ENV}"
     . "${SSH_ENV}" > /dev/null
     /usr/bin/ssh-add;
}

# Source SSH settings, if applicable

if [ -f "${SSH_ENV}" ]; then
     . "${SSH_ENV}" > /dev/null
     #ps ${SSH_AGENT_PID} doesn't work under cywgin
     ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || {
         start_agent;
     }
else
     start_agent;
fi 

Please open a PR with a failing test case, and we’ll be happy to work with you to resolve.

0reactions
arrowingcommented, Nov 25, 2019

@tbranyen good job!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git clone fails when cloning via SSH - Atlassian Documentation
Git clones fail when using ssh even if an Access key has been added to the repository or an SSH key has been...
Read more >
Troubleshooting cloning errors - GitHub Docs
If you see this error when cloning a repository, it means that the repository does not exist or you do not have permission...
Read more >
git - Can't clone an existing repository with ssh, and ssh config ...
Given this, when i try to clone the other repository, the error message below appears... $ git clone git@github.com:syra37fGIT/Angular.git ...
Read more >
SSH clone url is broken - Visual Studio Feedback
Went to my visualstudio.com site, chose a repo, selected clone, chose SSH, and copied the url. Ran git clone, and visualstudio.com came back...
Read more >
git clone via ssh not working (#54518) · Issues - GitLab
Cloning into 'my-project'... fatal: 'username/my-project.git' does not appear to be a git repository fatal: Could not read from remote ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found