FIX: The authenticity of host github.com can't be established.
source link: https://gist.github.com/vikpe/34454d69fe03a9617f2b009cc3ba200b
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
The authenticity of host github.com can't be established. · GitHub
Instantly share code, notes, and snippets.
Error
The authenticity of host 'github.com (140.82.113.4)' can't be established.
Fix
ssh-keyscan github.com >> ~/.ssh/known_hosts
Example (eg. using CircleCI workflow)
- run:
name: Add github.com to known hosts
command: ssh-keyscan github.com >> ~/.ssh/known_hosts
Thank you bro.
I have that message:
The authenticity of host 'github.com (127.0.0.1)' can't be established.
I don't understand how to fix
Hey. After doing this one, I got this error instead:
Warning: Permanently added the ECDSA host key for IP address '140.82.112.4' to the list of known hosts. ERROR: The key you are authenticating with has been marked as read only. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
But ssh key on the github side has write permission: https://ibb.co/3cRF7Gp.
I keep getting the same error, even after wiping the computer, and making a new github account.
Thanks Bro !!!
Hey. After doing this one, I got this error instead:
Warning: Permanently added the ECDSA host key for IP address '140.82.112.4' to the list of known hosts. ERROR: The key you are authenticating with has been marked as read only. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
But ssh key on the github side has write permission: https://ibb.co/3cRF7Gp.
I keep getting the same error, even after wiping the computer, and making a new github account.
When you generate SSH key just remove -f flage from the command e.g.
Instead of thisssh-keygen -t rsa -f ~/.ssh/testing -b 4096 -C "[email protected]"
Use thisssh-keygen -t rsa -b 4096 -C "[email protected]"
Thanks ,it worked perfectly.
facing this problem after setting up ssh as well but got fixed by addinng this command
Thanks, it worked like a charm.
Thank you!
Thank you, so much
Thanks!!!!
Tkanks!
Maybe anyone need this:
only add the keys when failed to ssh github.
#!/bin/sh
# 30s timeout
if ssh -o ConnectTimeout=30 -T [email protected] 2>&1 | grep "successfully authenticated"; then
echo "Git and GitHub connected"
else
ssh-keyscan github.com >> ~/.ssh/known_hosts
fi
Many thanks, it worked!
good tip man ... thanks !
Thanks)
Thanks a lot it worked like a charm!
Thanks
Warning: Permanently added the ECDSA host key for IP address to the list of known hosts. [email protected]: Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
same problem i just encounter. how can i fix it pls?
Thanks!!!
Thanks a lot!
@Bchamp21 You probably need to mkdir -p ~/.ssh; chmod go-rwx ~/.ssh
.
Thanks!
thanks
THANKYOUUUU!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK