Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning: Permanently added the RSA host key for IP address

Tags:

git

github

ssh

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.

like image 827
Ashwini Avatar asked Sep 10 '13 06:09

Ashwini


People also ask

How do I remove permanently added the RSA host key for my IP address?

You can remove the warning brutally by just editing the file ~/. ssh/known_hosts and remove all lines whose key is the same as that associated with the IP address. For example, if you have "Warning: Permanently added the RSA host key for IP address '140.82.

What is Github IP address?

8.8 Address: 8.8. 8.8#53 Aliases: github.com has address 192.30. 253.112 github.com has address 192.30.


2 Answers

If you are accessing your repositories over the SSH protocol, you will receive a warning message each time your client connects to a new IP address for github.com. As long as the IP address from the warning is in the range of IP addresses , you shouldn't be concerned. Specifically, the new addresses that are being added this time are in the range from 192.30.252.0 to 192.30.255.255. The warning message looks like this:

Warning: Permanently added the RSA host key for IP address '$IP' to the list of  

https://github.com/blog/1606-ip-address-changes

like image 145
Rajarshi Das Avatar answered Oct 15 '22 05:10

Rajarshi Das


The 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:

https://api.github.com/meta

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

like image 22
R Yoda Avatar answered Oct 15 '22 06:10

R Yoda