ssh - Git error: "Host Key Verification Failed" when connecting to remote repository - Stack Overflow (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (Stack Overflow) (https://stackoverflow.com/opensearch.xml) (https://stackoverflow.com/questions/13363553/git-error-host-key-verification-failed-when-connecting-to-remote-repository) (Feed for question 'Git error: "Host Key Verification Failed" when connecting to remote repository') (https://stackoverflow.com/feeds/question/13363553) (site logo) Join Stack Overflow By clicking “Sign up”, you agree to our (https://stackoverflow.com/legal/terms-of-service/public) terms of service and acknowledge you have read our (https://stackoverflow.com/legal/privacy-policy) privacy policy . Sign up with Google Sign up with GitHub OR Email Password (8+ characters (at least 1 letter & 1 number)) Sign up Already have an account? (https://stackoverflow.com/users/login) Log in Skip to main content (https://stackoverflow.com/) Stack Overflow (https://stackoverflow.co/) About Products (https://stackoverflow.co/teams/) For Teams (Search…) (Click to show search) (https://stackoverflow.com/users/login?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f13363553%2fgit-error-host-key-verification-failed-when-connecting-to-remote-repository) Log in (https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f13363553%2fgit-error-host-key-verification-failed-when-connecting-to-remote-repository) Sign up Let's set up your homepage Select a few topics you're interested in: python javascript c# reactjs java android html flutter c++ node.js typescript css r php angular next.js spring-boot machine-learning sql excel ios azure docker Or search from our full list: (Search) Next You’ll be prompted to create an account to view your personalized homepage. (https://stackoverflow.com/) Home (https://stackoverflow.com/questions) Questions (https://stackoverflow.ai/) AI Assist Labs (https://stackoverflow.com/tags) Tags (https://stackoverflow.com/beta/challenges) Challenges (https://chat.stackoverflow.com/rooms/259507/stack-overflow-lobby) Chat (https://stackoverflow.blog/contributed?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=so-blog&utm_content=experiment-articles) Articles (https://stackoverflow.com/users) Users (https://stackoverflow.com/jobs?source=so-left-nav) Jobs (https://stackoverflow.com/jobs/companies?so_medium=stackoverflow&so_source=SiteNav) Companies Collectives Communities for your favorite technologies. (https://stackoverflow.com/collectives-all) Explore all Collectives Teams Ask questions, find answers and collaborate at work with Stack Overflow for Teams. (https://stackoverflowteams.com/teams/create/free/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) Try Teams for free (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) Explore Teams (Illustration of upvote icon after it is clicked) Hang on, you can't upvote just yet. You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. (https://stackoverflow.com/help/whats-reputation) What's reputation and how do I get it? Instead, you can save this post to reference later. Save this post for later Not now (Illustration of upvote icon after it is clicked) Thanks for your vote! You now have 5 free votes weekly. Free votescount toward the total vote score does not give reputation to the author Continue to help good content that is interesting, well-researched, and useful, rise to the top! To gain full voting privileges, (https://stackoverflow.com/help/whats-reputation) earn reputation . Got it! Go to help center to learn more (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (https://stackoverflow.com/questions/13363553/git-error-host-key-verification-failed-when-connecting-to-remote-repository) Git error: "Host Key Verification Failed" when connecting to remote repository (https://stackoverflow.com/questions/ask) Ask Question (2012-11-13 15:26:36Z) Asked 12 years, 10 months ago Modified (https://stackoverflow.com/questions/13363553/git-error-host-key-verification-failed-when-connecting-to-remote-repository?lastactivity) (2024-04-29 20:45:04Z) 1 year, 4 months ago (Viewed 1,077,124 times) Viewed 1.1m times This question shows research effort; it is useful and clear 586 (This question does not show any research effort; it is unclear or not useful) Save this question. (https://stackoverflow.com/posts/13363553/timeline) Show activity on this post. I am trying to connect to a remote Git repository that resides on my web server and clone it to my machine. I am using the following format for my command: git clone ssh://username@domain.example/repository.git This has worked fine for most of my team members. Usually after running this command Git will prompt for the user's password, and then run the cloning. However, when running on one of my machines I get the following error: Host key verification failed. fatal: Could not read from remote repository. We are not using SSH keys to connect to this repository, so I'm not sure why Git is checking for one on this particular machine. (https://stackoverflow.com/questions/tagged/git) (show questions tagged 'git') git (https://stackoverflow.com/questions/tagged/ssh) (show questions tagged 'ssh') ssh (https://stackoverflow.com/questions/tagged/ssh-keys) (show questions tagged 'ssh-keys') ssh-keys (https://stackoverflow.com/q/13363553) (Short permalink to this question) Share (https://stackoverflow.com/posts/13363553/edit) Improve this question Follow Follow this question to receive notifications (https://stackoverflow.com/posts/13363553/revisions) (show all edits to this post) edited (2022-06-20 10:29:08Z) Jun 20, 2022 at 10:29 (https://stackoverflow.com/users/1145388/stephen-ostermiller) (Stephen Ostermiller's user avatar) (https://stackoverflow.com/users/1145388/stephen-ostermiller) Stephen Ostermiller (Moderator) ♦ (reputation score 25,749) 25.7k (18 gold badges) 18 18 gold badges (96 silver badges) 96 96 silver badges (116 bronze badges) 116 116 bronze badges asked (2012-11-13 15:26:36Z) Nov 13, 2012 at 15:26 (https://stackoverflow.com/users/1775860/bootsz) (bootsz's user avatar) (https://stackoverflow.com/users/1775860/bootsz) bootsz bootsz (reputation score) 5,971 (3 gold badges) 3 3 gold badges (15 silver badges) 15 15 silver badges (4 bronze badges) 4 4 bronze badges 3 (number of 'useful comment' votes received) 21 You are using SSH to connect to this repository, notice how your URL begins with ssh:// Brandon – (https://stackoverflow.com/users/535827/brandon) (1,967 reputation) Brandon 2019-01-09 22:16:56 +00:00 Commented (2019-01-09 22:16:56Z, License: CC BY-SA 4.0) Jan 9, 2019 at 22:16 (this comment was edited 1 time) (number of 'useful comment' votes received) 17 NOTE: GitHub just reset their host key. They have a separate solution in their blog post. See (https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/) github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key Ryan Shillington – (https://stackoverflow.com/users/491553/ryan-shillington) (25,467 reputation) Ryan Shillington 2023-03-26 05:01:55 +00:00 Commented (2023-03-26 05:01:55Z, License: CC BY-SA 4.0) Mar 26, 2023 at 5:01 I followed the instructions in the blog above (using edit known hosts file), and git synced yesterday, but today I get "Host key verification failed...". The fix in the blog is meant to be a persistent solution, correct? Frank_Coumans – (https://stackoverflow.com/users/12468438/frank-coumans) (314 reputation) Frank_Coumans 2023-03-30 07:56:06 +00:00 Commented (2023-03-30 07:56:06Z, License: CC BY-SA 4.0) Mar 30, 2023 at 7:56 (Use comments to ask for more information or suggest improvements. Avoid answering questions in comments.) Add a comment | (Expand to show all comments on this post) 33 Answers 33 Sorted by: (https://stackoverflow.com/questions/13363553/git-error-host-key-verification-failed-when-connecting-to-remote-repository?answertab=scoredesc#tab-top) Reset to default (scoredesc) Highest score (default) (trending) Trending (recent votes count more) (modifieddesc) Date modified (newest first) (createdasc) Date created (oldest first) 1 (https://stackoverflow.com/questions/13363553/git-error-host-key-verification-failed-when-connecting-to-remote-repository?page=2&tab=scoredesc#tab-top) (Go to page 2) 2 (https://stackoverflow.com/questions/13363553/git-error-host-key-verification-failed-when-connecting-to-remote-repository?page=2&tab=scoredesc#tab-top) (Go to page 2) Next This answer is useful 974 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/29380765/timeline) Show activity on this post. As I answered previously in (https://stackoverflow.com/questions/15214977/cloning-git-repo-causes-error-host-key-verification-failed-fatal-the-remote/29380672#29380672) Cloning git repo causes error - Host key verification failed. fatal: The remote end hung up unexpectedly , add GitHub to the list of known hosts: ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts (https://stackoverflow.com/a/29380765) (Short permalink to this answer) Share (https://stackoverflow.com/posts/29380765/edit) Improve this answer Follow Follow this answer to receive notifications (https://stackoverflow.com/posts/29380765/revisions) (show all edits to this post) edited (2021-10-13 00:44:01Z) Oct 13, 2021 at 0:44 user3064538 answered (2015-04-01 00:17:14Z) Apr 1, 2015 at 0:17 (https://stackoverflow.com/users/1194705/tupy) (Tupy's user avatar) (https://stackoverflow.com/users/1194705/tupy) Tupy Tupy (reputation score 12,801) 12.8k (4 gold badges) 4 4 gold badges (21 silver badges) 21 21 silver badges (11 bronze badges) 11 11 bronze badges 12 (number of 'useful comment' votes received) 4 This is the most secure way, short of already having the key present. That's assuming you only run it once, not every time you connect to the server. Zenexer – (https://stackoverflow.com/users/1188377/zenexer) (19,749 reputation) Zenexer 2015-08-13 13:49:28 +00:00 Commented (2015-08-13 13:49:28Z, License: CC BY-SA 3.0) Aug 13, 2015 at 13:49 (this comment was edited 1 time) (number of 'useful comment' votes received) 1 My company's private fit repository is using ecdsa as key, so if the solution isn't working, maybe it is because the algorithm isn't correct Fendy – (https://stackoverflow.com/users/2155396/fendy) (4,663 reputation) Fendy 2016-04-12 03:07:27 +00:00 Commented (2016-04-12 03:07:27Z, License: CC BY-SA 3.0) Apr 12, 2016 at 3:07 (number of 'useful comment' votes received) 2 worked for me too, I was wondering why I couldn't clone my own repo StackAttack – (https://stackoverflow.com/users/4513646/stackattack) (1,239 reputation) StackAttack 2018-11-16 16:34:33 +00:00 Commented (2018-11-16 16:34:33Z, License: CC BY-SA 4.0) Nov 16, 2018 at 16:34 (number of 'useful comment' votes received) 14 If you're using Windows, the easiest is to install git-for-windows(download) and open Git Bash . Inside this console you can use the ssh-keyscan command Rafael Araújo – (https://stackoverflow.com/users/3958617/rafael-ara%c3%bajo) (3,904 reputation) Rafael Araújo 2019-03-25 14:51:43 +00:00 Commented (2019-03-25 14:51:43Z, License: CC BY-SA 4.0) Mar 25, 2019 at 14:51 (number of 'useful comment' votes received) 3 You don't know how many years of frustration your answer could save. It also fixed the authentication errors of github desktop. I need to try it with my flu as well XD Diaa – (https://stackoverflow.com/users/2849383/diaa) (135 reputation) Diaa 2021-07-25 02:18:11 +00:00 Commented (2021-07-25 02:18:11Z, License: CC BY-SA 4.0) Jul 25, 2021 at 2:18 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) | (Expand to show all comments on this post) Show 7 more comments This answer is useful 350 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/13364116/timeline) Show activity on this post. You are connecting via the SSH protocol, as indicated by the ssh:// prefix on your clone URL. Using SSH, every host has a key. Clients remember the host key associated with a particular address and refuse to connect if a host key appears to change. This prevents man in the middle attacks. The host key for domain.example has changed. If this does not seem fishy to you , remove the old key from your local cache by editing ${HOME}/.ssh/known_hosts to remove the line for domain.example or letting an SSH utility do it for you with ssh-keygen -R domain.example From here, record the updated key either by doing it yourself with ssh-keyscan -t rsa domain.example >> ~/.ssh/known_hosts or, equivalently, let ssh do it for you next time you connect with git fetch , git pull , or git push (or even a plain ol’ ssh domain.example ) by answering yes when prompted The authenticity of host 'domain.example (a.b.c.d)' can't be established. RSA key fingerprint is XX:XX:...:XX. Are you sure you want to continue connecting (yes/no)? The reason for this prompt is domain.example is no longer in your known_hosts after deleting it and presumably not in the system’s /etc/ssh/ssh_known_hosts , so ssh has no way to know whether the host on the other end of the connection is really domain.example . (If the wrong key is in /etc , someone with administrative privileges will have to update the system-wide file.) I strongly encourage you to consider having users authenticate with keys as well. That way, ssh-agent can store key material for convenience (rather than everyone having to enter her password for each connection to the server), and passwords do not go over the network. (https://stackoverflow.com/a/13364116) (Short permalink to this answer) Share (https://stackoverflow.com/posts/13364116/edit) Improve this answer Follow Follow this answer to receive notifications (https://stackoverflow.com/posts/13364116/revisions) (show all edits to this post) edited (2022-06-20 10:29:40Z) Jun 20, 2022 at 10:29 (https://stackoverflow.com/users/1145388/stephen-ostermiller) (Stephen Ostermiller's user avatar) (https://stackoverflow.com/users/1145388/stephen-ostermiller) Stephen Ostermiller (Moderator) ♦ (reputation score 25,749) 25.7k (18 gold badges) 18 18 gold badges (96 silver badges) 96 96 silver badges (116 bronze badges) 116 116 bronze badges answered (2012-11-13 15:59:18Z) Nov 13, 2012 at 15:59 (https://stackoverflow.com/users/123109/greg-bacon) (Greg Bacon's user avatar) (https://stackoverflow.com/users/123109/greg-bacon) Greg Bacon Greg Bacon (reputation score 140,331) 140k (34 gold badges) 34 34 gold badges (196 silver badges) 196 196 silver badges (252 bronze badges) 252 252 bronze badges 9 (number of 'useful comment' votes received) 8 Fun fact, running sudo ssh-keygen -R domain.com can rename your existing known_hosts file to be known_hosts.old , and create a copy that is only readable by root . (-rw------- root root ) You can easily chown this back to the appropriate user, but you also might waste an afternoon debugging why git is broken. :D Andrew Rueckert – (https://stackoverflow.com/users/425722/andrew-rueckert) (5,288 reputation) Andrew Rueckert 2020-02-28 23:39:01 +00:00 Commented (2020-02-28 23:39:01Z, License: CC BY-SA 4.0) Feb 28, 2020 at 23:39 (number of 'useful comment' votes received) 33 Are you sure you want to continue connecting (yes/no)? . Don't make the same mistake as me. You need to type yes . Simply hitting enter doesn't select yes by default JolonB – (https://stackoverflow.com/users/6366927/jolonb) (438 reputation) JolonB 2020-05-24 22:20:26 +00:00 Commented (2020-05-24 22:20:26Z, License: CC BY-SA 4.0) May 24, 2020 at 22:20 (number of 'useful comment' votes received) 3 For CI environments, like Jenkins, you can not asnwer yes when prompted to. So, make sure that: 1. you have the ssh keys correctly created and in the .ssh dir inside your home. 2. the target domain added to known_hosts as stated here. Sebastian Juarez – (https://stackoverflow.com/users/193744/sebastian-juarez) (3,381 reputation) Sebastian Juarez 2020-08-25 19:47:46 +00:00 Commented (2020-08-25 19:47:46Z, License: CC BY-SA 4.0) Aug 25, 2020 at 19:47 (this comment was edited 1 time) (number of 'useful comment' votes received) 8 One gotcha is that you might need the port number for the remote repository: ssh-keyscan -p 8888 -t rsa domain.com >> ~/.ssh/known_hosts andrew – (https://stackoverflow.com/users/1884171/andrew) (4,089 reputation) andrew 2021-04-15 23:53:21 +00:00 Commented (2021-04-15 23:53:21Z, License: CC BY-SA 4.0) Apr 15, 2021 at 23:53 (number of 'useful comment' votes received) 7 @AndrewRueckert one of the many reasons why randomly adding sudo to the beginning of commands is a bad idea. jbg – (https://stackoverflow.com/users/1174521/jbg) (5,298 reputation) jbg 2021-04-19 12:00:04 +00:00 Commented (2021-04-19 12:00:04Z, License: CC BY-SA 4.0) Apr 19, 2021 at 12:00 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) | (Expand to show all comments on this post) Show 4 more comments This answer is useful 114 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/29908140/timeline) Show activity on this post. I had the similar issue, but, using SSH keys. From Tupy's answer, above, I figured out that the issue is with known_hosts file not being present or github.com not being present in the list of known hosts. Here are the steps I followed to resolve it - mkdir -p ~/.ssh ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts ssh-keygen -t rsa -C "user.email" open the public key with this command $ cat ~/.ssh/id_rsa.pub and copy it. Add the id_rsa.pub key to SSH keys list on your GitHub profile. (https://stackoverflow.com/a/29908140) (Short permalink to this answer) Share (https://stackoverflow.com/posts/29908140/edit) Improve this answer Follow Follow this answer to receive notifications (https://stackoverflow.com/posts/29908140/revisions) (show all edits to this post) edited (2019-05-26 09:53:26Z) May 26, 2019 at 9:53 (https://stackoverflow.com/users/11556472/own-rodriguez) (Own Rodriguez's user avatar) (https://stackoverflow.com/users/11556472/own-rodriguez) Own Rodriguez (reputation score) 3 (1 silver badge) 1 1 silver badge (3 bronze badges) 3 3 bronze badges answered (2015-04-28 00:16:21Z) Apr 28, 2015 at 0:16 (https://stackoverflow.com/users/2104103/saran) (Saran's user avatar) (https://stackoverflow.com/users/2104103/saran) Saran Saran (reputation score) 1,395 (1 gold badge) 1 1 gold badge (10 silver badges) 10 10 silver badges (11 bronze badges) 11 11 bronze badges 4 (number of 'useful comment' votes received) 2 @OJFord FYI: I have edited the original answer in a way that makes your comment obsolete. TBH and with all due respect it wasn't entirely correct in the first place. The touch command would fail in case ~/.ssh directory does not exist, so step 1 was still required. Also you don't need to touch the file before using >> redirection. It will be created if necessary (but just the file, not entire path, so still mkdir -p is needed). The -p option make it work in case the directory already exists. Tad Lispy – (https://stackoverflow.com/users/1151982/tad-lispy) (3,084 reputation) Tad Lispy 2018-06-10 17:14:18 +00:00 Commented (2018-06-10 17:14:18Z, License: CC BY-SA 4.0) Jun 10, 2018 at 17:14 (number of 'useful comment' votes received) 2 It's the #2 ssh-keyscan that's missing from the Github docs on adding a new ssh key. Max Phillips – (https://stackoverflow.com/users/4397018/max-phillips) (7,519 reputation) Max Phillips 2019-10-14 15:03:08 +00:00 Commented (2019-10-14 15:03:08Z, License: CC BY-SA 4.0) Oct 14, 2019 at 15:03 (number of 'useful comment' votes received) 3 I was having issues with my Dockerfile having a lack of permission. Adding the 2nd step here fixed that problem! Thank you for the great work Spencer Pollock – (https://stackoverflow.com/users/5078905/spencer-pollock) (457 reputation) Spencer Pollock 2020-02-16 09:56:38 +00:00 Commented (2020-02-16 09:56:38Z, License: CC BY-SA 4.0) Feb 16, 2020 at 9:56 I followed the above step and failed as I was giving github.com as the hostKey in spring config server properties files. Those who are failing to connect spring.cloud.config-server to fetch from git, see this (https://tranhoangminh.wordpress.com/2018/09/14/spring-cloud-config-server-and-ssh-git-repository/) tranhoangminh.wordpress.com/2018/09/14/… . Well explained here. SHAKU – (https://stackoverflow.com/users/2593176/shaku) (697 reputation) SHAKU 2021-03-20 17:42:57 +00:00 Commented (2021-03-20 17:42:57Z, License: CC BY-SA 4.0) Mar 20, 2021 at 17:42 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 81 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/47052031/timeline) Show activity on this post. This is happening because github is not currently in your known hosts. You should be prompted to add github to your known hosts. If this hasn't happened, you can run ssh -T git@github.com to receive the prompt again. (https://stackoverflow.com/a/47052031) (Short permalink to this answer) Share (https://stackoverflow.com/posts/47052031/edit) Improve this answer Follow Follow this answer to receive notifications (https://stackoverflow.com/posts/47052031/revisions) (show all edits to this post) edited (2018-07-11 09:55:31Z) Jul 11, 2018 at 9:55 answered (2017-11-01 09:46:47Z) Nov 1, 2017 at 9:46 (https://stackoverflow.com/users/7168602/powderham) (Powderham's user avatar) (https://stackoverflow.com/users/7168602/powderham) Powderham Powderham (reputation score) 1,660 (15 silver badges) 15 15 silver badges (14 bronze badges) 14 14 bronze badges 2 (number of 'useful comment' votes received) 4 This is the right answer if you never get prompted. Matt Hagemann – (https://stackoverflow.com/users/3618442/matt-hagemann) (1,526 reputation) Matt Hagemann 2018-07-07 08:23:32 +00:00 Commented (2018-07-07 08:23:32Z, License: CC BY-SA 4.0) Jul 7, 2018 at 8:23 Vscode suddenly giving me the titled error for no reason. Simply using this answer works for me. Someone Special – (https://stackoverflow.com/users/2822041/someone-special) (13,708 reputation) Someone Special 2022-06-26 10:22:13 +00:00 Commented (2022-06-26 10:22:13Z, License: CC BY-SA 4.0) Jun 26, 2022 at 10:22 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 41 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/45472226/timeline) Show activity on this post. For me, I just had to type "yes" at the prompt which asks "Are you sure you want to continue connecting (yes/no)?" rather than just pressing Enter. (https://stackoverflow.com/a/45472226) (Short permalink to this answer) Share (https://stackoverflow.com/posts/45472226/edit) Improve this answer Follow Follow this answer to receive notifications answered (2017-08-02 22:51:53Z) Aug 2, 2017 at 22:51 (https://stackoverflow.com/users/1440565/code-apprentice) (Code-Apprentice's user avatar) (https://stackoverflow.com/users/1440565/code-apprentice) Code-Apprentice Code-Apprentice (reputation score 83,924) 83.9k (26 gold badges) 26 26 gold badges (162 silver badges) 162 162 silver badges (288 bronze badges) 288 288 bronze badges 3 (number of 'useful comment' votes received) 2 This answer lead me to realize I had to manually clone my repo on my build server in order to type 'yes' and get my bitbucket server added to my known_hosts Sashah – (https://stackoverflow.com/users/2148757/sashah) (418 reputation) Sashah 2017-11-20 20:34:15 +00:00 Commented (2017-11-20 20:34:15Z, License: CC BY-SA 3.0) Nov 20, 2017 at 20:34 (number of 'useful comment' votes received) 2 @Sashah If all you need is the bitbucket server in known_hosts, you can edit the file manually. No need to clone the repo if this is the only reason to do so. Code-Apprentice – (https://stackoverflow.com/users/1440565/code-apprentice) (83,924 reputation) Code-Apprentice 2017-12-13 16:03:37 +00:00 Commented (2017-12-13 16:03:37Z, License: CC BY-SA 3.0) Dec 13, 2017 at 16:03 (this comment was edited 1 time) (number of 'useful comment' votes received) 3 Wow, I was stuck on this for the past hour and this solved it. Thank you! Akanksha Atrey – (https://stackoverflow.com/users/7723026/akanksha-atrey) (880 reputation) Akanksha Atrey 2022-06-02 16:58:20 +00:00 Commented (2022-06-02 16:58:20Z, License: CC BY-SA 4.0) Jun 2, 2022 at 16:58 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 31 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/75284598/timeline) Show activity on this post. When the terminal shows: Are you sure you want to continue connecting (yes/no)? DO NOT I repeat DO NOT just press Enter . You MUST TYPE yes first in the terminal, then press Enter . (https://stackoverflow.com/a/75284598) (Short permalink to this answer) Share (https://stackoverflow.com/posts/75284598/edit) Improve this answer Follow Follow this answer to receive notifications (https://stackoverflow.com/posts/75284598/revisions) (show all edits to this post) edited (2024-04-29 20:45:04Z) Apr 29, 2024 at 20:45 (https://stackoverflow.com/users/7908821/ludog) (ludog's user avatar) (https://stackoverflow.com/users/7908821/ludog) ludog (reputation score) 150 (2 silver badges) 2 2 silver badges (13 bronze badges) 13 13 bronze badges answered (2023-01-30 12:47:45Z) Jan 30, 2023 at 12:47 (https://stackoverflow.com/users/3258003/muhammad-fauzi-masykur) (Muhammad Fauzi Masykur's user avatar) (https://stackoverflow.com/users/3258003/muhammad-fauzi-masykur) Muhammad Fauzi Masykur Muhammad Fauzi Masykur (reputation score) 2,272 (1 gold badge) 1 1 gold badge (19 silver badges) 19 19 silver badges (18 bronze badges) 18 18 bronze badges 0 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 16 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/42591129/timeline) Show activity on this post. If you are in office intranet (otherwise dangerous) which is always protected by firewalls simply have the following lines in your ~/.ssh/config . Host * StrictHostKeyChecking no UserKnownHostsFile=/dev/null (https://stackoverflow.com/a/42591129) (Short permalink to this answer) Share (https://stackoverflow.com/posts/42591129/edit) Improve this answer Follow Follow this answer to receive notifications (https://stackoverflow.com/posts/42591129/revisions) (show all edits to this post) edited (2020-10-23 00:15:59Z) Oct 23, 2020 at 0:15 (https://stackoverflow.com/users/55075/kenorb) (kenorb's user avatar) (https://stackoverflow.com/users/55075/kenorb) kenorb (reputation score 168,253) 168k (95 gold badges) 95 95 gold badges (711 silver badges) 711 711 silver badges (793 bronze badges) 793 793 bronze badges answered (2017-03-04 01:40:29Z) Mar 4, 2017 at 1:40 (https://stackoverflow.com/users/1409386/sunil) (sunil's user avatar) (https://stackoverflow.com/users/1409386/sunil) sunil sunil (reputation score) 516 (5 silver badges) 5 5 silver badges (11 bronze badges) 11 11 bronze badges 2 (number of 'useful comment' votes received) 7 This is still dangerous, with our without corporate firewalls. How do you know you're talking to the real github without verifying the server key? Mnebuerquo – (https://stackoverflow.com/users/5114/mnebuerquo) (5,999 reputation) Mnebuerquo 2018-03-17 20:42:36 +00:00 Commented (2018-03-17 20:42:36Z, License: CC BY-SA 3.0) Mar 17, 2018 at 20:42 (number of 'useful comment' votes received) 2 In corporate environments local git repos are mostly used, never opensource one. Worst case .ssh config at the top of the file can have github explicit host related config lines for ssh to choose more specific matches. sunil – (https://stackoverflow.com/users/1409386/sunil) (516 reputation) sunil 2018-05-21 13:36:15 +00:00 Commented (2018-05-21 13:36:15Z, License: CC BY-SA 4.0) May 21, 2018 at 13:36 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 13 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/55790530/timeline) Show activity on this post. When asked: Are you sure you want to continue connecting (yes/no)? Type yes as the response That is how I solved my issue. But if you try to just hit the enter button, it won't work! (https://stackoverflow.com/a/55790530) (Short permalink to this answer) Share (https://stackoverflow.com/posts/55790530/edit) Improve this answer Follow Follow this answer to receive notifications answered (2019-04-22 07:10:50Z) Apr 22, 2019 at 7:10 (https://stackoverflow.com/users/9618653/victor-bruce) (Victor Bruce's user avatar) (https://stackoverflow.com/users/9618653/victor-bruce) Victor Bruce Victor Bruce (reputation score) 207 (2 silver badges) 2 2 silver badges (12 bronze badges) 12 12 bronze badges 0 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 10 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/18079668/timeline) Show activity on this post. I got the same problem on a newly installed system, but this was a udev problem. There was no /dev/tty node, so I had to do: mknod -m 666 /dev/tty c 5 0 (https://stackoverflow.com/a/18079668) (Short permalink to this answer) Share (https://stackoverflow.com/posts/18079668/edit) Improve this answer Follow Follow this answer to receive notifications answered (2013-08-06 12:04:09Z) Aug 6, 2013 at 12:04 (https://stackoverflow.com/users/610351/jaffa) (Jaffa's user avatar) (https://stackoverflow.com/users/610351/jaffa) Jaffa Jaffa (reputation score 12,733) 12.7k (5 gold badges) 5 5 gold badges (54 silver badges) 54 54 silver badges (103 bronze badges) 103 103 bronze badges 4 (number of 'useful comment' votes received) 2 It worked for me because /dev/tty was created as a file, very odd! (so you have to remove it then recreate it with mknod) Doomsday – (https://stackoverflow.com/users/135720/doomsday) (2,678 reputation) Doomsday 2014-11-02 14:31:38 +00:00 Commented (2014-11-02 14:31:38Z, License: CC BY-SA 3.0) Nov 2, 2014 at 14:31 @Geoffroy , I removed /dev/tty and now when do sudo , I face this error : sudo: sorry, you must have a tty to run sudo Milad – (https://stackoverflow.com/users/3198804/milad) (28,728 reputation) Milad 2014-12-17 12:29:57 +00:00 Commented (2014-12-17 12:29:57Z, License: CC BY-SA 3.0) Dec 17, 2014 at 12:29 @xe4me I never said you should remove it, depending on the system it is actually required. Reboot should fix it. Jaffa – (https://stackoverflow.com/users/610351/jaffa) (12,733 reputation) Jaffa 2014-12-17 17:33:22 +00:00 Commented (2014-12-17 17:33:22Z, License: CC BY-SA 3.0) Dec 17, 2014 at 17:33 @Geoffroy , actually the first commentator , said I have to remove and the recreate :d Nope , rebooting didn't work , I had to tell the root , he fixed it :d Milad – (https://stackoverflow.com/users/3198804/milad) (28,728 reputation) Milad 2014-12-18 09:58:32 +00:00 Commented (2014-12-18 09:58:32Z, License: CC BY-SA 3.0) Dec 18, 2014 at 9:58 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 8 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/48371816/timeline) Show activity on this post. What worked for me was to first add my SSH key of the new computer, I followed these instructions from (https://docs.gitlab.com/ce/ssh/README.html) GitLab - add SSH key . Note that since I'm on Win10, I had to do all these commands in Git Bash on Windows (it didn't work in regular DOS cmd Shell). Then again in Git Bash, I had to do a git clone of the repo that I had problems with, and in my case I had to clone it to a different name since I already had it locally and didn't want to lose my commits. For example git clone ssh://git@gitServerUrl/myRepo.git myRepo2 Then I got the prompt to add it to known hosts list, the question might be this one: Are you sure you want to continue connecting (yes/no)? I typed "yes" and it finally worked, you should typically get a message similar to this: Warning: Permanently added '[your repo link]' (ECDSA) to the list of known hosts. Note : if you are on Windows, make sure that you use Git Bash for all the commands, this did not work in regular cmd shell or powershell, I really had to do this in Git Bash. Lastly I deleted the second clone repo (myRepo2 in the example) and went back to my first repo and I could finally do all the Git stuff like normal in my favorite editor VSCode. (https://stackoverflow.com/a/48371816) (Short permalink to this answer) Share (https://stackoverflow.com/posts/48371816/edit) Improve this answer Follow Follow this answer to receive notifications answered (2018-01-21 21:18:10Z) Jan 21, 2018 at 21:18 (https://stackoverflow.com/users/1212166/ghiscoding) (ghiscoding's user avatar) (https://stackoverflow.com/users/1212166/ghiscoding) ghiscoding ghiscoding (reputation score 13,354) 13.4k (8 gold badges) 8 8 gold badges (76 silver badges) 76 76 silver badges (120 bronze badges) 120 120 bronze badges 1 Indeed, my Cygwin prompt looks nearly exactly like my git bash prompt, but it only works in the git bash prompt! Josiah Yoder – (https://stackoverflow.com/users/1048186/josiah-yoder) (3,824 reputation) Josiah Yoder 2018-08-02 18:00:27 +00:00 Commented (2018-08-02 18:00:27Z, License: CC BY-SA 4.0) Aug 2, 2018 at 18:00 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 6 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/57093465/timeline) Show activity on this post. When the remote server wants to connect to the private repo, it would authenticate via ssh. Create the private-public key pair with ssh-keygen or if you already have the public-private key. copy&paste the public key in the Settings of the private repo. YourPrivateRepo -> Settings -> Deploy Keys -> Add deploy key -> Paste the public key. Now the remote server would be able to connect to the private repo. NOTE: The deploy keys has access only for reading the repo. Need to explicitly allow write access. (https://stackoverflow.com/a/57093465) (Short permalink to this answer) Share (https://stackoverflow.com/posts/57093465/edit) Improve this answer Follow Follow this answer to receive notifications answered (2019-07-18 11:31:57Z) Jul 18, 2019 at 11:31 (https://stackoverflow.com/users/11241641/sandy) (Sandy's user avatar) (https://stackoverflow.com/users/11241641/sandy) Sandy Sandy (reputation score) 1,062 (1 gold badge) 1 1 gold badge (12 silver badges) 12 12 silver badges (15 bronze badges) 15 15 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 6 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/63332327/timeline) Show activity on this post. You can use https instead of ssh for git clone or git pull or git push ex: git clone https://github.com/user/repo.git (https://stackoverflow.com/a/63332327) (Short permalink to this answer) Share (https://stackoverflow.com/posts/63332327/edit) Improve this answer Follow Follow this answer to receive notifications (https://stackoverflow.com/posts/63332327/revisions) (show all edits to this post) edited (2023-12-14 12:49:10Z) Dec 14, 2023 at 12:49 (https://stackoverflow.com/users/1168786/ssuperczynski) (ssuperczynski's user avatar) (https://stackoverflow.com/users/1168786/ssuperczynski) ssuperczynski (reputation score) 3,436 (3 gold badges) 3 3 gold badges (46 silver badges) 46 46 silver badges (64 bronze badges) 64 64 bronze badges answered (2020-08-09 23:27:27Z) Aug 9, 2020 at 23:27 (https://stackoverflow.com/users/10526425/lamri-djamal) (Lamri Djamal's user avatar) (https://stackoverflow.com/users/10526425/lamri-djamal) Lamri Djamal Lamri Djamal (reputation score) 301 (2 silver badges) 2 2 silver badges (10 bronze badges) 10 10 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 5 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/49677638/timeline) Show activity on this post. If you are using git for Windows. Open the git GUI. Open the local git repository in git GUI. Add the remote or push if the remote already exists. Answer "yes" to the question about whether you want to continue. The GUI client adds the key for you to ~/.ssh/known_hosts . This is easier to remember if you don't do it often and also avoids the need to use the git command line (the standard Windows command lines don't have the ssh-keyscan executable. (https://stackoverflow.com/a/49677638) (Short permalink to this answer) Share (https://stackoverflow.com/posts/49677638/edit) Improve this answer Follow Follow this answer to receive notifications answered (2018-04-05 16:51:53Z) Apr 5, 2018 at 16:51 (https://stackoverflow.com/users/1309986/julian-knight) (Julian Knight's user avatar) (https://stackoverflow.com/users/1309986/julian-knight) Julian Knight Julian Knight (reputation score) 4,941 (2 gold badges) 2 2 gold badges (35 silver badges) 35 35 silver badges (47 bronze badges) 47 47 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 4 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/62984435/timeline) Show activity on this post. The solutions mentioned here are great, the only missing point is, what if your public and private key file names are different than the default ones? Create a file called "config" under ~/.ssh and add the following contents Host github.com IdentityFile ~/.ssh/github_id_rsa Replace github_id_rsa with your private key file. (https://stackoverflow.com/a/62984435) (Short permalink to this answer) Share (https://stackoverflow.com/posts/62984435/edit) Improve this answer Follow Follow this answer to receive notifications answered (2020-07-19 18:57:40Z) Jul 19, 2020 at 18:57 (https://stackoverflow.com/users/1300669/rp) (RP-'s user avatar) (https://stackoverflow.com/users/1300669/rp) RP- RP- (reputation score) 5,837 (2 gold badges) 2 2 gold badges (32 silver badges) 32 32 silver badges (48 bronze badges) 48 48 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 4 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/67117423/timeline) Show activity on this post. One small addition to (https://stackoverflow.com/a/29380765/1884171) Tupy's answer , you may need to add the port number for your repository host: ssh-keyscan -p 8888 -t rsa domain.example >> ~/.ssh/known_hosts If you have another machine that does have remote access you can find the port number by viewing ~/.ssh/known_hosts: [user]$ less ~/.ssh/known_hosts [domain.example]:8888,[000.00.000.000]:8888 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCi... (https://stackoverflow.com/a/67117423) (Short permalink to this answer) Share (https://stackoverflow.com/posts/67117423/edit) Improve this answer Follow Follow this answer to receive notifications (https://stackoverflow.com/posts/67117423/revisions) (show all edits to this post) edited (2022-06-20 10:31:26Z) Jun 20, 2022 at 10:31 (https://stackoverflow.com/users/1145388/stephen-ostermiller) (Stephen Ostermiller's user avatar) (https://stackoverflow.com/users/1145388/stephen-ostermiller) Stephen Ostermiller (Moderator) ♦ (reputation score 25,749) 25.7k (18 gold badges) 18 18 gold badges (96 silver badges) 96 96 silver badges (116 bronze badges) 116 116 bronze badges answered (2021-04-15 23:59:43Z) Apr 15, 2021 at 23:59 (https://stackoverflow.com/users/1884171/andrew) (andrew's user avatar) (https://stackoverflow.com/users/1884171/andrew) andrew andrew (reputation score) 4,089 (1 gold badge) 1 1 gold badge (27 silver badges) 27 27 silver badges (39 bronze badges) 39 39 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 3 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/37159123/timeline) Show activity on this post. You can use your "git url" in 'https" URL format in the Jenkinsfile or wherever you want. git url: 'https://github.com/jglick/simple-maven-project-with-tests.git' (https://stackoverflow.com/a/37159123) (Short permalink to this answer) Share (https://stackoverflow.com/posts/37159123/edit) Improve this answer Follow Follow this answer to receive notifications answered (2016-05-11 09:58:12Z) May 11, 2016 at 9:58 (https://stackoverflow.com/users/6055946/nitin) (Nitin's user avatar) (https://stackoverflow.com/users/6055946/nitin) Nitin Nitin (reputation score 11,376) 11.4k (4 gold badges) 4 4 gold badges (19 silver badges) 19 19 silver badges (36 bronze badges) 36 36 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 3 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/51594866/timeline) Show activity on this post. I was facing the same error inside DockerFile during build time while the image was public. I did little modification in Dockerfile. RUN git clone https://github.com/kacole2/express-node-mongo-skeleton.git /www/nodejs This would be because using the git@github.com:... syntax ends up > using SSH to clone, and inside the container, your private key is not > available. You'll want to use RUN git clone > (https://github.com/edenhill/librdkafka.git) https://github.com/edenhill/librdkafka.git instead. (https://stackoverflow.com/a/51594866) (Short permalink to this answer) Share (https://stackoverflow.com/posts/51594866/edit) Improve this answer Follow Follow this answer to receive notifications answered (2018-07-30 13:16:29Z) Jul 30, 2018 at 13:16 (https://stackoverflow.com/users/3288890/adiii) (Adiii's user avatar) (https://stackoverflow.com/users/3288890/adiii) Adiii Adiii (reputation score 60,844) 60.8k (10 gold badges) 10 10 gold badges (177 silver badges) 177 177 silver badges (172 bronze badges) 172 172 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 3 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/70863335/timeline) Show activity on this post. Check permissions on the known_hosts file as well - both the user's (~/.ssh/known_hosts) and the global one (/etc/ssh/ssh_known_hosts). In my case the old host was in /etc/ssh/ssh_known_hosts. When I removed it as root with sudo ssh-keygen -f /etc/ssh/ssh_known_hosts -R THE_HOST it changed permissions on that file to 0600, so SSHing to THE_HOST as root worked, but for any other user it failed with "Host key verification failed". The fix was: sudo chmod 644 /etc/ssh/ssh_known_hosts (https://stackoverflow.com/a/70863335) (Short permalink to this answer) Share (https://stackoverflow.com/posts/70863335/edit) Improve this answer Follow Follow this answer to receive notifications (https://stackoverflow.com/posts/70863335/revisions) (show all edits to this post) edited (2022-03-05 08:59:29Z) Mar 5, 2022 at 8:59 answered (2022-01-26 12:19:56Z) Jan 26, 2022 at 12:19 (https://stackoverflow.com/users/1536933/em0) (EM0's user avatar) (https://stackoverflow.com/users/1536933/em0) EM0 EM0 (reputation score) 6,485 (8 gold badges) 8 8 gold badges (59 silver badges) 59 59 silver badges (101 bronze badges) 101 101 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 3 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/73739016/timeline) Show activity on this post. Dashboard > Manage Jenkins > Configure Global Security > Git Host Key Verification Configuration. Then in Host Key Verification Strategy select Accept first connection. (https://stackoverflow.com/a/73739016) (Short permalink to this answer) Share (https://stackoverflow.com/posts/73739016/edit) Improve this answer Follow Follow this answer to receive notifications answered (2022-09-16 01:42:23Z) Sep 16, 2022 at 1:42 (https://stackoverflow.com/users/8370334/abd-abughazaleh) (Abd Abughazaleh's user avatar) (https://stackoverflow.com/users/8370334/abd-abughazaleh) Abd Abughazaleh Abd Abughazaleh (reputation score) 5,701 (5 gold badges) 5 5 gold badges (59 silver badges) 59 59 silver badges (60 bronze badges) 60 60 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 3 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/75953417/timeline) Show activity on this post. I just cleared out my known host file and that seemed to do the trick. (https://stackoverflow.com/a/75953417) (Short permalink to this answer) Share (https://stackoverflow.com/posts/75953417/edit) Improve this answer Follow Follow this answer to receive notifications answered (2023-04-06 20:13:19Z) Apr 6, 2023 at 20:13 (https://stackoverflow.com/users/4406670/daniel-l-vandenbosch) (Daniel L. VanDenBosch's user avatar) (https://stackoverflow.com/users/4406670/daniel-l-vandenbosch) Daniel L. VanDenBosch Daniel L. VanDenBosch (reputation score) 2,795 (7 gold badges) 7 7 gold badges (45 silver badges) 45 45 silver badges (68 bronze badges) 68 68 bronze badges 1 if anyone is wondering why this could be a solution, when the remote repository changes its ssh public key (but you still have the old one stored under .ssh\known_hosts) - emptying known_hosts file content will trigger to store the new key in your known_hosts. LeTex – (https://stackoverflow.com/users/1200235/letex) (1,462 reputation) LeTex 2023-05-24 22:17:00 +00:00 Commented (2023-05-24 22:17:00Z, License: CC BY-SA 4.0) May 24, 2023 at 22:17 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 2 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/38939303/timeline) Show activity on this post. Its means your remote host key was changed (May be host password change), Your terminal suggested to execute this command as root user $ ssh-keygen -f "/root/.ssh/known_hosts" -R [www.website.net] You have to remove that host name from hosts list on your pc/server. Copy that suggested command and execute as a root user. $ sudo su // Login as a root user $ ssh-keygen -f "/root/.ssh/known_hosts" -R [www.website.net] // Terminal suggested command execute here Host [www.website.net]:4231 found: line 16 type ECDSA /root/.ssh/known_hosts updated. Original contents retained as /root/.ssh/known_hosts.old $ exit // Exist from root user Try Again, Hope this works. (https://stackoverflow.com/a/38939303) (Short permalink to this answer) Share (https://stackoverflow.com/posts/38939303/edit) Improve this answer Follow Follow this answer to receive notifications answered (2016-08-14 05:02:16Z) Aug 14, 2016 at 5:02 (https://stackoverflow.com/users/1153551/jaykumar-patel) (Jaykumar Patel's user avatar) (https://stackoverflow.com/users/1153551/jaykumar-patel) Jaykumar Patel Jaykumar Patel (reputation score 27,682) 27.7k (12 gold badges) 12 12 gold badges (79 silver badges) 79 79 silver badges (76 bronze badges) 76 76 bronze badges 1 Note: depending on your shell, you may have to escape the square brackets \[ and \] or use quotes. Phlarx – (https://stackoverflow.com/users/2494846/phlarx) (134 reputation) Phlarx 2017-01-16 19:38:07 +00:00 Commented (2017-01-16 19:38:07Z, License: CC BY-SA 3.0) Jan 16, 2017 at 19:38 (this comment was edited 1 time) (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 2 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/64331462/timeline) Show activity on this post. Reason seems to be that the public key of the remote host is not stored or different from the stored one. (Be aware of security issues, see Greg Bacon's answer for details.) I was used to git clone prompting me in this case: The authenticity of host 'host.net (10.0.0.42)' can't be established. ECDSA key fingerprint is 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00. Are you sure you want to continue connecting (yes/no)? Not sure, why this error is thrown instead. Could be the configuration of your shell or the git SSH command.Anyhow, you can get the same prompt by running ssh user@host.net . (https://stackoverflow.com/a/64331462) (Short permalink to this answer) Share (https://stackoverflow.com/posts/64331462/edit) Improve this answer Follow Follow this answer to receive notifications answered (2020-10-13 08:28:35Z) Oct 13, 2020 at 8:28 (https://stackoverflow.com/users/6625509/thehowlinghoaschd) (TheHowlingHoaschd's user avatar) (https://stackoverflow.com/users/6625509/thehowlinghoaschd) TheHowlingHoaschd TheHowlingHoaschd (reputation score) 716 (7 silver badges) 7 7 silver badges (13 bronze badges) 13 13 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 2 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/67096566/timeline) Show activity on this post. A other alternative worked for me, instead of cloning the SSH link git@gitlab.company.net:upendra/mycode.git there is a option to select http link http://gitlab.company.net:8888/upendra/mycode.git So I used http link to clone for Visual studio and it worked for me (https://stackoverflow.com/a/67096566) (Short permalink to this answer) Share (https://stackoverflow.com/posts/67096566/edit) Improve this answer Follow Follow this answer to receive notifications answered (2021-04-14 17:39:00Z) Apr 14, 2021 at 17:39 (https://stackoverflow.com/users/2168303/u-pendra) (u_pendra's user avatar) (https://stackoverflow.com/users/2168303/u-pendra) u_pendra u_pendra (reputation score) 948 (1 gold badge) 1 1 gold badge (10 silver badges) 10 10 silver badges (27 bronze badges) 27 27 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 2 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/67595801/timeline) Show activity on this post. If you are not using a Windows Session to update the code, and you use PortableGit , you need to set the HOMEPATH environment variable before running the git command. This example fits better (https://stackoverflow.com/questions/67578903/execute-git-bash-exe-from-a-service/67595782#67595782) for other use case , but I think it is a good of proof-of-concept for this post. $env:HOMEPATH="\Users\Administrator";C:\path\to\PortableGit\bin\git.exe -C C:\path\to\repository.git pull' (https://stackoverflow.com/a/67595801) (Short permalink to this answer) Share (https://stackoverflow.com/posts/67595801/edit) Improve this answer Follow Follow this answer to receive notifications answered (2021-05-19 01:28:45Z) May 19, 2021 at 1:28 (https://stackoverflow.com/users/998649/tk421) (Tk421's user avatar) (https://stackoverflow.com/users/998649/tk421) Tk421 Tk421 (reputation score) 6,438 (6 gold badges) 6 6 gold badges (40 silver badges) 40 40 silver badges (51 bronze badges) 51 51 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 2 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/67938468/timeline) Show activity on this post. Pushing to Git returning Error Code 403 fatal: HTTP request failed Check if there is Billing issue. Google Cloud stops uploading files to (https://source.cloud.google.com/) https://source.cloud.google.com/ I got this problem went away after Payment issue was fixed. But did not change the Keys. Thanks (https://stackoverflow.com/a/67938468) (Short permalink to this answer) Share (https://stackoverflow.com/posts/67938468/edit) Improve this answer Follow Follow this answer to receive notifications answered (2021-06-11 14:06:18Z) Jun 11, 2021 at 14:06 (https://stackoverflow.com/users/14144329/k-d) (K D's user avatar) (https://stackoverflow.com/users/14144329/k-d) K D K D (reputation score) 215 (4 silver badges) 4 4 silver badges (10 bronze badges) 10 10 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 0 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/69334410/timeline) Show activity on this post. Alternatively, if you're using MSYS2 terminals (on Windows*) and a passphrase, it might be that the terminal does not prompt the 'Enter passphrase' properly, thus denying access to SSH. If you're on Windows, you can instead use the Git Bash or Powershell to get the prompt and properly connect. (I'm currently looking for a solution for MSYS.) *Not sure if relevant. (https://stackoverflow.com/a/69334410) (Short permalink to this answer) Share (https://stackoverflow.com/posts/69334410/edit) Improve this answer Follow Follow this answer to receive notifications answered (2021-09-26 11:21:04Z) Sep 26, 2021 at 11:21 (https://stackoverflow.com/users/10935530/prometheos-ii) (Prometheos II's user avatar) (https://stackoverflow.com/users/10935530/prometheos-ii) Prometheos II Prometheos II (reputation score) 384 (4 silver badges) 4 4 silver badges (16 bronze badges) 16 16 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 0 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/69493172/timeline) Show activity on this post. Problem: Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Solution: I've checked all the settings and also checked the key settings in GitHub. Finally, I changed the Git URL from "git@github.com:palvsv/travelo-moon.git" to "https://github.com/palvsv/travelo-moon.git" in .config file "yourprojectdirectory/.git/config" and it works. (https://stackoverflow.com/a/69493172) (Short permalink to this answer) Share (https://stackoverflow.com/posts/69493172/edit) Improve this answer Follow Follow this answer to receive notifications answered (2021-10-08 08:56:04Z) Oct 8, 2021 at 8:56 (https://stackoverflow.com/users/9445508/trupal-vasava) (TRUPAL VASAVA's user avatar) (https://stackoverflow.com/users/9445508/trupal-vasava) TRUPAL VASAVA TRUPAL VASAVA (reputation score) 69 (6 bronze badges) 6 6 bronze badges 1 (number of 'useful comment' votes received) 3 This simply changes the authentication method from SSH to HTTPS - this is not a solution if you're actually trying to use SSH keys, which the OP was not, however a bunch of other people here are, so I would say this isn't extremely valid for 90% of use cases. Arcsector – (https://stackoverflow.com/users/6284028/arcsector) (1,421 reputation) Arcsector 2022-02-09 22:58:41 +00:00 Commented (2022-02-09 22:58:41Z, License: CC BY-SA 4.0) Feb 9, 2022 at 22:58 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful 0 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/78358381/timeline) Show activity on this post. After generating a SSH key pair you need to add your key to the ssh-agent: 1 - start the ssh-agent in the background (this depends on your environment) $ eval "$(ssh-agent -s)" > Agent pid 59566 2 - Add your SSH key to the ssh-agent ssh-add ~/.ssh/id_rsa 3 - add the SSH private key to your remote git account source: (https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent (https://stackoverflow.com/a/78358381) (Short permalink to this answer) Share (https://stackoverflow.com/posts/78358381/edit) Improve this answer Follow Follow this answer to receive notifications answered (2024-04-20 13:25:36Z) Apr 20, 2024 at 13:25 (https://stackoverflow.com/users/17566907/souhail-benlhachemi) (Souhail Benlhachemi's user avatar) (https://stackoverflow.com/users/17566907/souhail-benlhachemi) Souhail Benlhachemi Souhail Benlhachemi (reputation score) 303 (3 silver badges) 3 3 silver badges (8 bronze badges) 8 8 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful -2 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/77906997/timeline) Show activity on this post. You can add the following ssh key entries to your ~/.ssh/known_hosts file to avoid manually verifying GitHub hosts ((https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints) ref1 , (https://docs.github.com/en/authentication/troubleshooting-ssh/error-host-key-verification-failed) ref2 ) github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk= (https://stackoverflow.com/a/77906997) (Short permalink to this answer) Share (https://stackoverflow.com/posts/77906997/edit) Improve this answer Follow Follow this answer to receive notifications answered (2024-01-30 14:11:58Z) Jan 30, 2024 at 14:11 (https://stackoverflow.com/users/448078/mykhaylo-adamovych) (Mykhaylo Adamovych's user avatar) (https://stackoverflow.com/users/448078/mykhaylo-adamovych) Mykhaylo Adamovych Mykhaylo Adamovych (reputation score 21,162) 21.2k (26 gold badges) 26 26 gold badges (109 silver badges) 109 109 silver badges (150 bronze badges) 150 150 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) This answer is useful -3 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/34953555/timeline) Show activity on this post. I had the similar issue, unfortunately I used the GitExtensions HMI and forgot that I wrote a passphrase. With HMI.... forget it ! Do not enter passphrase when you generate your key ! (https://stackoverflow.com/a/34953555) (Short permalink to this answer) Share (https://stackoverflow.com/posts/34953555/edit) Improve this answer Follow Follow this answer to receive notifications answered (2016-01-22 18:28:42Z) Jan 22, 2016 at 18:28 (https://stackoverflow.com/users/4650813/jerome-vacher) (Jerome Vacher's user avatar) (https://stackoverflow.com/users/4650813/jerome-vacher) Jerome Vacher Jerome Vacher (reputation score) 324 (1 silver badge) 1 1 silver badge (7 bronze badges) 7 7 bronze badges (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) 1 (https://stackoverflow.com/questions/13363553/git-error-host-key-verification-failed-when-connecting-to-remote-repository?page=2&tab=scoredesc#tab-top) (Go to page 2) 2 (https://stackoverflow.com/questions/13363553/git-error-host-key-verification-failed-when-connecting-to-remote-repository?page=2&tab=scoredesc#tab-top) (Go to page 2) Next (https://stackoverflow.com/help/privileges/protect-questions) Protected question . To answer this question, you need to have at least 10 reputation on this site (not counting the (https://meta.stackexchange.com/questions/141648/what-is-the-association-bonus-and-how-does-it-work) association bonus ). The reputation requirement helps protect this question from spam and non-answer activity. Start asking to get answers Find the answer to your question by asking. (https://stackoverflow.com/questions/ask) Ask question Explore related questions (https://stackoverflow.com/questions/tagged/git) (show questions tagged 'git') git (https://stackoverflow.com/questions/tagged/ssh) (show questions tagged 'ssh') ssh (https://stackoverflow.com/questions/tagged/ssh-keys) (show questions tagged 'ssh-keys') ssh-keys See similar questions with these tags. The Overflow Blog (https://stackoverflow.blog/2025/09/05/kotlin-is-more-than-just-the-android-house-language/?cb=1) Kotlin is more than just the Android house language (https://stackoverflow.blog/2025/09/09/we-built-stackoverflow-ai-with-the-community-and-for-the-community/?cb=1) We built stackoverflow.ai with the community and for the community Featured on Meta (Meta Stack Exchange) (https://meta.stackexchange.com/questions/412384/community-asks-sprint-announcement-september-2025?cb=1) Community Asks Sprint Announcement - September 2025 (Meta Stack Exchange) (https://meta.stackexchange.com/questions/412386/stackoverflow-ai-rebuilt-for-attribution?cb=1) stackoverflow.ai - rebuilt for attribution (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/421831/policy-generative-ai-e-g-chatgpt-is-banned?cb=1) Policy: Generative AI (e.g., ChatGPT) is banned (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/434861/new-comment-ui-experiment-graduation?cb=1) New comment UI experiment graduation Community activity Last 1 hr Users online activity 13115 users online Number of questions asked 25 questions Number of questions that received an answer 17 answers Number of comments posted 86 comments Number of upvotes on posts 230 upvotes Popular tags Popular tags (https://stackoverflow.com/questions/tagged/c) c (https://stackoverflow.com/questions/tagged/python) python (https://stackoverflow.com/questions/tagged/javascript) javascript (https://stackoverflow.com/questions/tagged/c#) c# (https://stackoverflow.com/questions/tagged/java) java (https://stackoverflow.com/questions/tagged/c++) c++ Popular unanswered question Popular unanswered question (https://stackoverflow.com/questions/73494822) how to reference environment variable from devcontainer when vscode connected to remote machine via ssh (https://stackoverflow.com/questions/tagged/visual-studio-code) visual-studio-code (https://stackoverflow.com/questions/tagged/ssh) ssh (https://stackoverflow.com/questions/tagged/environment-variables) environment-variables (https://stackoverflow.com/questions/tagged/vscode-devcontainer) vscode-devcontainer (https://stackoverflow.com/users/138553) (User avatar) (https://stackoverflow.com/users/138553) IlliakaillI 1.6k (Friday, August 26, 2022 at 12:13:29 AM UTC) 1,111 days ago Linked (https://stackoverflow.com/questions/68487345/how-do-i-provide-ssh-keys-to-github-actions-so-that-pip-can-install-from-a-git-r?lq=1) (Question score (upvotes - downvotes)) 3 (https://stackoverflow.com/questions/68487345/how-do-i-provide-ssh-keys-to-github-actions-so-that-pip-can-install-from-a-git-r?noredirect=1&lq=1) How do I provide SSH keys to GitHub Actions so that pip can install from a git repo? (https://stackoverflow.com/questions/57089742/composer-in-docker-not-passing-verification-for-private-repo?lq=1) (Question score (upvotes - downvotes)) 2 (https://stackoverflow.com/questions/57089742/composer-in-docker-not-passing-verification-for-private-repo?noredirect=1&lq=1) Composer in Docker not passing verification for private repo (https://stackoverflow.com/questions/66378681/job-returns-host-key-verification-failed-when-i-run-ssh-on-gitlab-ci?lq=1) (Question score (upvotes - downvotes)) -1 (https://stackoverflow.com/questions/66378681/job-returns-host-key-verification-failed-when-i-run-ssh-on-gitlab-ci?noredirect=1&lq=1) Job returns "Host key verification failed." when I run ssh on gitlab-ci (https://stackoverflow.com/questions/70472942/git-host-key-verification-failed?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/70472942/git-host-key-verification-failed?noredirect=1&lq=1) Git: Host Key Verification Failed (https://stackoverflow.com/questions/43321584/host-key-verification-failed-fatal-could-not-read-from-remote-repository?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/43321584/host-key-verification-failed-fatal-could-not-read-from-remote-repository?noredirect=1&lq=1) Host key verification failed. fatal: Could not read from remote repository (https://stackoverflow.com/questions/59487893/how-to-clone-repository-using-ssh-in-ec2-userdata?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/59487893/how-to-clone-repository-using-ssh-in-ec2-userdata?noredirect=1&lq=1) How to clone repository using SSH in EC2 userdata? (https://stackoverflow.com/questions/63708340/host-key-verification-failed-please-make-sure-you-have-the-correct-access-rights?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/63708340/host-key-verification-failed-please-make-sure-you-have-the-correct-access-rights?noredirect=1&lq=1) Host key verification failed please make sure you have the correct access rights (https://stackoverflow.com/questions/69449351/verification-error-when-trying-do-merge-gitlab-runner-into-remote-branch?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/69449351/verification-error-when-trying-do-merge-gitlab-runner-into-remote-branch?noredirect=1&lq=1) Verification error when trying do merge Gitlab runner into remote branch (https://stackoverflow.com/questions/69898941/vscode-connecting-to-cpanel-repo?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/69898941/vscode-connecting-to-cpanel-repo?noredirect=1&lq=1) VSCode Connecting to cPanel Repo (https://stackoverflow.com/questions/73423609/heroku-build-app-failed-for-react-app-and-throw-an-errors?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/73423609/heroku-build-app-failed-for-react-app-and-throw-an-errors?noredirect=1&lq=1) Heroku build app failed for react app and throw an errors (https://stackoverflow.com/questions/linked/13363553?lq=1) See more linked questions Related (https://stackoverflow.com/questions/11443687/the-authenticity-of-host-cant-be-established?rq=3) (Question score (upvotes - downvotes)) 47 (https://stackoverflow.com/questions/11443687/the-authenticity-of-host-cant-be-established?rq=3) The authenticity of host can't be established (https://stackoverflow.com/questions/14327507/git-post-receive-host-key-verification-failed?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/14327507/git-post-receive-host-key-verification-failed?rq=3) Git post-receive Host Key verification failed (https://stackoverflow.com/questions/15214977/cloning-git-repo-causes-error-host-key-verification-failed-fatal-the-remote?rq=3) (Question score (upvotes - downvotes)) 69 (https://stackoverflow.com/questions/15214977/cloning-git-repo-causes-error-host-key-verification-failed-fatal-the-remote?rq=3) Cloning git repo causes error - Host key verification failed. fatal: The remote end hung up unexpectedly (https://stackoverflow.com/questions/21087695/not-able-to-git-pull-host-key-verification-failed?rq=3) (Question score (upvotes - downvotes)) 27 (https://stackoverflow.com/questions/21087695/not-able-to-git-pull-host-key-verification-failed?rq=3) Not able to "git pull" - Host key verification failed (https://stackoverflow.com/questions/29105552/host-key-verification-failed-amazon-ec2?rq=3) (Question score (upvotes - downvotes)) 15 (https://stackoverflow.com/questions/29105552/host-key-verification-failed-amazon-ec2?rq=3) Host key verification failed - amazon EC2 (https://stackoverflow.com/questions/47600266/host-key-verification-failed-for-git-from-docker?rq=3) (Question score (upvotes - downvotes)) 2 (https://stackoverflow.com/questions/47600266/host-key-verification-failed-for-git-from-docker?rq=3) Host key verification failed for git from docker (https://stackoverflow.com/questions/56803717/git-is-looking-for-a-wrong-ssh-key?rq=3) (Question score (upvotes - downvotes)) 13 (https://stackoverflow.com/questions/56803717/git-is-looking-for-a-wrong-ssh-key?rq=3) Git is looking for a wrong SSH key (https://stackoverflow.com/questions/61434697/error-fatal-could-not-read-from-remote-repository-git-push-ssh-key?rq=3) (Question score (upvotes - downvotes)) 5 (https://stackoverflow.com/questions/61434697/error-fatal-could-not-read-from-remote-repository-git-push-ssh-key?rq=3) Error "Fatal: Could not read from remote repository" git push - ssh key (https://stackoverflow.com/questions/65947647/git-push-fails-because-of-ssh-key-host-key-verification-failed-from-inside-a-d?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/65947647/git-push-fails-because-of-ssh-key-host-key-verification-failed-from-inside-a-d?rq=3) Git push fails because of ssh key: Host key verification failed. from inside a docker (https://stackoverflow.com/questions/73320508/authenticity-of-host-cant-be-established-message-pops-up-when-i-try-to-connec?rq=3) (Question score (upvotes - downvotes)) 2 (https://stackoverflow.com/questions/73320508/authenticity-of-host-cant-be-established-message-pops-up-when-i-try-to-connec?rq=3) "Authenticity of host can't be established" message pops up when I try to connect an SSH key to github.com (https://stackexchange.com/questions?tab=hot) Hot Network Questions (Personal Finance & Money Stack Exchange) (https://money.stackexchange.com/questions/166661/can-i-get-a-refund-of-my-social-security-contribution-if-i-am-leaving-the-us) Can I get a refund of my Social security contribution if I am leaving the US? (MathOverflow) (https://mathoverflow.net/questions/500130/higher-extensions-in-triangulated-categories-with-t-structure) Higher extensions in triangulated categories with t-structure (Science Fiction & Fantasy Stack Exchange) (https://scifi.stackexchange.com/questions/299065/was-clarke-aware-that-mars-was-a-sterile-environment-when-he-wrote-sands-of-mars) Was Clarke aware that Mars was a sterile environment when he wrote Sands of Mars (History of Science and Mathematics Stack Exchange) (https://hsm.stackexchange.com/questions/18860/what-did-tait-mean-by-saying-hilbert-was-not-in-a-position-to-appreciate-kants) What did Tait mean by saying Hilbert “was not in a position to appreciate Kant's antinomies of pure reason”? (Stack Overflow) (https://stackoverflow.com/questions/79758388/how-does-printing-a-union-itself-and-not-its-member-work-in-c) How does printing a union itself and not its member work in C? (Mathematics Stack Exchange) (https://math.stackexchange.com/questions/5095042/approximating-zeros-of-a-function) Approximating zeros of a function (Seasoned Advice) (https://cooking.stackexchange.com/questions/133064/eggs-left-in-hot-car-for-three-days-are-they-safe-to-consumei) Eggs left in hot car for three days are they safe to consume?I (Electrical Engineering Stack Exchange) (https://electronics.stackexchange.com/questions/755059/why-do-dsp-systems-not-use-caches) Why do DSP systems not use caches? (Puzzling Stack Exchange) (https://puzzling.stackexchange.com/questions/133148/i-have-keys-that-open-no-locks) I have keys that open no locks (Role-playing Games Stack Exchange) (https://rpg.stackexchange.com/questions/216493/does-couatls-poison-end-when-the-victim-is-shaken-awake) Does couatl's poison end when the victim is shaken awake? (Worldbuilding Stack Exchange) (https://worldbuilding.stackexchange.com/questions/268982/could-a-ring-around-a-planet-become-solid) Could a ring around a planet become solid? (Philosophy Stack Exchange) (https://philosophy.stackexchange.com/questions/130319/how-does-one-resolve-competing-intuitions-in-philosophy) How does one resolve competing intuitions in philosophy? (Personal Finance & Money Stack Exchange) (https://money.stackexchange.com/questions/166665/how-much-will-the-capital-gains-tax-be-for-selling-off-part-of-our-land) How much will the capital gains tax be for selling off part of our land? (German Language Stack Exchange) (https://german.stackexchange.com/questions/80684/is-the-short-pronunciation-of-the-u-in-the-word-buch-colloquial) Is the short pronunciation of the "u" in the word "Buch" colloquial? (MathOverflow) (https://mathoverflow.net/questions/500113/quantifier-elimination-for-natural-numbers-with-order-and-successor) Quantifier elimination for natural numbers with order and successor (Biblical Hermeneutics Stack Exchange) (https://hermeneutics.stackexchange.com/questions/108219/what-is-editorial-fatigue-in-relation-to-the-synoptic-gospels) What is editorial fatigue in relation to the Synoptic Gospels? (Bicycles Stack Exchange) (https://bicycles.stackexchange.com/questions/97468/when-is-a-rim-depth-too-much) When is a rim depth too much? (Role-playing Games Stack Exchange) (https://rpg.stackexchange.com/questions/216490/does-telekinetic-feats-invisible-mage-hand-or-arcane-tricksters-invisible-mage) Does Telekinetic feat's Invisible Mage Hand or Arcane Trickster's Invisible Mage Hand Conceal Objects It Carries? (Music: Practice & Theory Stack Exchange) (https://music.stackexchange.com/questions/141383/arranging-left-hand-piano-chords-for-other-instruments) Arranging left hand piano chords for other instruments (Politics Stack Exchange) (https://politics.stackexchange.com/questions/93502/can-lower-court-judges-criticize-or-disagree-with-a-scotus-shadow-docket-ruling) Can lower court judges criticize or disagree with a SCOTUS shadow docket ruling? (Philosophy Stack Exchange) (https://philosophy.stackexchange.com/questions/130274/is-physics-just-mathematized-natural-philosophy) Is Physics just mathematized Natural Philosophy? (Physics Stack Exchange) (https://physics.stackexchange.com/questions/859044/why-does-the-wavefunction-collapse-after-no-detection) Why does the wavefunction collapse after no detection? (English Language & Usage Stack Exchange) (https://english.stackexchange.com/questions/633061/is-there-a-term-for-the-opposite-of-a-backronym-i-e-a-former-acronym-that-no) Is there a term for the opposite of a backronym – i.e. a former acronym that no longer stands for anything in particular? (Code Review Stack Exchange) (https://codereview.stackexchange.com/questions/298077/github-actions-workflow-for-release-and-publishing-to-pypi-using-uv) Github actions workflow for release and publishing to PyPI using uv (https://stackoverflow.com/feeds/question/13363553) (Feed of this question and its answers) Question feed Subscribe to RSS Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader. (https://stackoverflow.com/feeds/question/13363553) () Why are you flagging this comment? (45) Probable spam. This comment promotes a product, service or website while (https://stackoverflow.com/help/promotion) failing to disclose the author's affiliation . (20) Unfriendly or contains harassment/bigotry/abuse. This comment is unkind, insulting or attacks another person or group. Learn more in our (https://stackoverflow.com/conduct/abusive-behavior) Code of Conduct . (39) Not needed. This comment is not relevant to the post. (19) Something else. A problem not listed above. Try to be as specific as possible. Flag comment Cancel You have 0 flags left today (https://stackoverflow.com/) (https://stackoverflow.com/) Stack Overflow (https://stackoverflow.com/questions) Questions (https://stackoverflow.com/help) Help (https://chat.stackoverflow.com/?tab=explore) Chat (https://stackoverflow.co/) Products (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=teams) Teams (https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=advertising) Advertising (https://stackoverflow.co/advertising/employer-branding/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=talent) Talent (https://stackoverflow.co/) Company (https://stackoverflow.co/) About (https://stackoverflow.co/company/press/) Press (https://stackoverflow.co/company/work-here/) Work Here (https://stackoverflow.com/legal) Legal (https://stackoverflow.com/legal/privacy-policy) Privacy Policy (https://stackoverflow.com/legal/terms-of-service/public) Terms of Service (https://stackoverflow.com/contact) Contact Us Your Privacy Choices (https://policies.stackoverflow.co/stack-overflow/cookie-policy) Cookie Policy (https://stackexchange.com/) Stack Exchange Network (https://stackexchange.com/sites#technology) Technology (https://stackexchange.com/sites#culturerecreation) Culture & recreation (https://stackexchange.com/sites#lifearts) Life & arts (https://stackexchange.com/sites#science) Science (https://stackexchange.com/sites#professional) Professional (https://stackexchange.com/sites#business) Business (https://api.stackexchange.com/) API (https://data.stackexchange.com/) Data (https://stackoverflow.blog/?blb=1) Blog (https://www.facebook.com/officialstackoverflow/) Facebook (https://twitter.com/stackoverflow) Twitter (https://linkedin.com/company/stack-overflow) LinkedIn (https://www.instagram.com/thestackoverflow) Instagram Site design / logo © 2025 Stack Exchange Inc; user contributions licensed under (https://stackoverflow.com/help/licensing) CC BY-SA . rev 2025.9.9.33751 By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our (https://stackoverflow.com/legal/cookie-policy) Cookie Policy . Accept all cookies Necessary cookies only Customize settings