When I do pull
from Github, I am getting this warning message.
MYPC:/Rails$ git pull origin master
Warning: Permanently added the RSA host key for IP address '#{Some IP address}' to the list of known hosts.
From github.com:Example/Demo
* branch master -> FETCH_HEAD
Already up-to-date.
I just want to know which IP address it is adding to the known hosts.
From: https://github.blog/changelog/2019-04-09-webhooks-ip-changes/
April 9, 2019
Webhooks IP changes
The IP addresses we use to send webhooks from are broadening to encompass a larger range.
We are adding IP’s within
140.82.112.0/20
to the current pool from192.30.252.0/22
.
E.g. ip 192.30.253.112
in warning:
$ git clone [email protected]:EXAMPLE.git
Cloning into 'EXAMPLE'...
Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts.
remote: Enumerating objects: 135, done.
remote: Total 135 (delta 0), reused 0 (delta 0), pack-reused 135
Receiving objects: 100% (135/135), 9.49 MiB | 2.46 MiB/s, done.
Resolving deltas: 100% (40/40), done.
It's the ip if you nslookup
github url:
$ nslookup github.com
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authoritative answer:
Name: github.com
Address: 192.30.253.112
Name: github.com
Address: 192.30.253.113
$
I had similar problem. In git site after user clicking on clone or download button, while copying the cloned url there are 2 options to select ssh and https. I selected https url to clone and it worked.
While cloning you might be using SSH in the dropdown list. Change it to Https and then clone.
I solved it by using git push -u origin master
Here are the steps that i took to solve the issue and you can try also
ssh-keygen
and hit enterC:\Users\<username>\.ssh
and open a file named id_rsa.pub
in notepad and copy the keySettings
and select the option SSH and GPS keys
.git push origin master
I hope you wont get any errorThe IP addresses have changed again.
github publishes the list of used IP addresses here so you can check the IP address in your message against github's list:
https://help.github.com/articles/about-github-s-ip-addresses/
Or more precisely:
It looks like this (as I write this answer!):
verifiable_password_authentication true
github_services_sha "4159703d573ee6f602e304ed25b5862463a2c73d"
hooks
0 "192.30.252.0/22"
1 "185.199.108.0/22"
git
0 "192.30.252.0/22"
1 "185.199.108.0/22"
2 "18.195.85.27/32"
3 "18.194.104.89/32"
4 "35.159.8.160/32"
pages
0 "192.30.252.153/32"
1 "192.30.252.154/32"
importer
0 "54.87.5.173"
1 "54.166.52.62"
2 "23.20.92.3"
If you are unsure whether your IP address is contained in the above list use an CIDR calculator like http://www.subnet-calculator.com/cidr.php to show the valid IP range.
E. g. for 140.82.112.0/20
the IP range is 140.82.112.0
- 140.82.127.255
Source: Stackoverflow.com