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.

Github ssh connection issues

See original GitHub issue

Hey,

I’m not sure if the docs are unclear or something is wrong, but I couldn’t use either limit-access-to-actor together with limit-access-to-users or limit-access-to-actor by itself (introduced in #8).

The ssh command I used was:

ssh -i ~/.ssh/gh_current_key b9mSRLZzh0Br3aVNmSNE:MTAuMjQ0LjAuNzY6MjI=@uptermd.upterm.dev
b9mSRLZzh0Br3aVNmSNE:MTAuMjQ0LjAuNzY6MjI=@uptermd.upterm.dev: Permission denied (publickey).

I also tried stripping the password string, as the connection string instruction in the docs is a little ambiguous.

ssh -i ~/.ssh/gh_current_key b9mSRLZzh0Br3aVNmSNE@uptermd.upterm.dev 
Connection closed by 157.230.199.75 port 22

To sanity check I tried doing an ssh connection test to github, which worked fine:

ssh -T -i ~/.ssh/gh_current_key git@github.com 
Warning: remote port forwarding failed for listen port 2222
Hi Folcon! You've successfully authenticated, but GitHub does not provide shell access.

Not sure what the problem is or if this is an upstream issue…

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

6reactions
sameerjethvani-alationcommented, Mar 7, 2022

Commenting here since this can help

I was trying this github action & was facing Connection closed by 157.230.199.75 port 22 when trying to ssh to ubuntu-latest github runner from my local machine . Upon further debugging came to know it was because of ssh-rsa public key being used (reference https://github.com/owenthereal/upterm/issues/93#issuecomment-1045387517)

Followed below steps , generating ed25519 key & using it for ssh to uptermd.upterm.dev worked fine for me.

ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "yourusername@company"
ssh -i ~/.ssh/id_ed25519 <somestring>:<somestring>=@uptermd.upterm.dev
1reaction
lhotaricommented, Mar 22, 2022

One of the commits removed the instructions for the workarounds: https://github.com/owenthereal/upterm/commit/0f410ca8f3f88119a570adf13dae37d9817ae894

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting SSH - GitHub Docs
When using SSH to connect and authenticate to GitHub, you may need to troubleshoot unexpected issues that may arise. Using SSH over the...
Read more >
Why doesn't my SSH key work for connecting to github?
make a key with ssh-keygen. · open ~/.ssh/id_rsa. · Go to account settings on github.com · Go to SSH Keys · Click on...
Read more >
Troubleshoot Git connection through SSH - Checkmarx
Connectivity issues: First, rule out connectivity issues to the Git repository over port 22 (SSH) (or another custom port specified for SSH ...
Read more >
Quick GitHub 'Permission denied (publickey)' SSH error fix
GitHub 'Permission denied (publickey)' error · You have used an incorrect email address in the GitHub SSH URL · You have not configured...
Read more >
Remote Development Tips and Tricks - Visual Studio Code
Either use an SSH key without a passphrase, clone using HTTPS, or run git push from the command line to work around the...
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