Giter VIP home page Giter VIP logo

Comments (16)

joshmoore avatar joshmoore commented on July 30, 2024 1097

From https://trello.com/c/z5LrlWMy/275-spaces-work:

ssh-keyscan github.com >> ~/.ssh/known_hosts

from devspace.

AleksandarSavic95 avatar AleksandarSavic95 commented on July 30, 2024 19

Just a note - this error can happen if You forgot to add Your ssh key to the repo You are trying to communicate with :)

from devspace.

atarkowska avatar atarkowska commented on July 30, 2024 17

thank you that works ;-)

from devspace.

SofijaErkin avatar SofijaErkin commented on July 30, 2024 11

Just typing "yes".

from devspace.

assem-khaleel avatar assem-khaleel commented on July 30, 2024 7

From https://trello.com/c/z5LrlWMy/275-spaces-work:

ssh-keyscan github.com >> ~/.ssh/known_hosts

Your amazing man , you made my day , thanks a lot

from devspace.

Lukortech avatar Lukortech commented on July 30, 2024 7

From https://trello.com/c/z5LrlWMy/275-spaces-work:

ssh-keyscan github.com >> ~/.ssh/known_hosts

Thank you so much for this.
I've been haunted by the error for quite some time.

from devspace.

xeruf avatar xeruf commented on July 30, 2024 4

@joshmoore how is this any safer than just answering the prompt with yes?
Either way, we are trusting that there is absolutely no corruption in our connection to github.com, what this security feature is made to address I thought?

from devspace.

joshmoore avatar joshmoore commented on July 30, 2024 1

Hi @Aaron-Penn-Interactive,

Hmm.... sounds like there's something else going on here. By my count, you've ok'd the authenticity at last twice but it's still not asking for confirmation which is weird. The only thing I can think of off-hand is if there are different users/machines/contexts by which known_hosts somehow changes.

I will note that GitHub itself has improved there docs around this in case there's anything there that might help you:

https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/testing-your-ssh-connection

~Josh

from devspace.

muhammadtayyabrajput avatar muhammadtayyabrajput commented on July 30, 2024 1

it works thanks bro

from devspace.

yaylucasf avatar yaylucasf commented on July 30, 2024 1

Thank you!

from devspace.

atarkowska avatar atarkowska commented on July 30, 2024

looks like too early enthusiasm. I started fresh devspace deployment and having the same problem now. Running manually

bash-4.1$ /home/slave/.local/bin/scc merge develop --no-ask --reset -S success-only --push develop/merge/trigger

doesn't ask me the above question but still failing

from devspace.

yanjunhui2014 avatar yanjunhui2014 commented on July 30, 2024

@joshmoore thank u, it work!

from devspace.

joshmoore avatar joshmoore commented on July 30, 2024

Hi @Xerus2000. You're right that ssh-keyscan github.com >> ~/.ssh/known_hosts isn't safer at all. What this issue doesn't make clear though is that @aleksandra-tarkowska was looking for an automated way to start a fresh docker container which hasn't yet been primed with a known_hosts yet, i.e. there is no prompt that we can answer. This is a workaround at best.

from devspace.

Aaron-Penn-Interactive avatar Aaron-Penn-Interactive commented on July 30, 2024

I've been having this problem, but it doesn't ask if I want to continue. It just hangs there. I ran the ssh-keyscan command and I see the entry in the known_hosts file, but I still get the authenticity error. Even restarted my computer to no avail.
I also tried the test: ssh -T [email protected] and got this output:

<name>@<machine> ios-sportsbook % ssh -T [email protected]
Warning: Permanently added the RSA host key for IP address '140.82.114.3' to the list of known hosts.
Hi <githubUser>! You've successfully authenticated, but GitHub does not provide shell access.

Tried my git clone, but still got the error: The authenticity of host 'github.com (140.82.114.3)' can't be established. And it never asks if I want to continue

from devspace.

maximpn avatar maximpn commented on July 30, 2024

ssh-keyscan github.com >> ~/.ssh/known_hosts just leads to another error

npm WARN prepare removing existing node_modules/ before installation
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://[email protected]/kleros/dispute-resolver-interface-contract.git
npm ERR! 
npm ERR! Warning: Permanently added the ECDSA host key for IP address '140.82.121.4' to the list of known hosts.
npm ERR! [email protected]: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR! 
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR! 
npm ERR! exited with error code: 128

Just run ssh [email protected] instead

from devspace.

joshmoore avatar joshmoore commented on July 30, 2024

Hi @mpalenov. Sounds like there's more involved in your case. For example, the ssh-keyscan github.com >> ~/.ssh/known_hosts should have prevented npm ERR! Warning: Permanently added the ECDSA host key for IP address '140.82.121.4' to the list of known hosts. Perhaps it was run as a separate user or in a separate context? Also the error npm ERR! [email protected]: Permission denied (publickey). most likely comes from a missing SSH key somewhere. But if you are in an interactive shell, you're right: "Just run ssh [email protected] instead" 👍

from devspace.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.