There is the known_hosts file which stores past ssh transaction info
But perhaps this file doesn't store hostname/IP combo? (which if parsed [as maybe is yes indicated by the ssh_config] would send it over and over again forever to only the one IP that recorded when this new record was added to known_hosts
You could make a backup copy of known_hosts then delete ~/.ssh/known_hosts
Then you'd be starting anew (to discover if it then records/keeps the current IP)
--
al@AB60R:/etc/ssh$ pwd
/etc/ssh
al@AB60R:/etc/ssh$ lsg h_co
ssh_config
next copy/pasted from /etc/ssh/ssh_config
# Configuration data is parsed as follows:
# 1. command line options
# 2. user-specific file
# 3. system-wide file
# Any configuration value is only changed the first time it is set.
# Thus, host-specific definitions should be at the beginning of the
# configuration file, and defaults at the end.
"2. user-specific" to me would mean the next file (known_hosts) in my /home
al@AB60R:~/.ssh$ pwd
/home/al/.ssh
al@AB60R:~/.ssh$ ls
known_hosts
al@AB60R:~/.ssh$
in that known_hosts are any former ssh transaction
I think (can't remember for certain) in the past I have deleted this known_hosts file and let it start over again (whenever some data in it had become outdated or in need of updating).
I think (can't remember for certain) that once (a record of) a host gets in this file that such record then never changes (would always go for the same IP address again and again forever)
when ssh, I think (not certain) it 1st checks this file -- even if you go to ssh to a *new one* (one that had not ever ssh'd to before) -- in the case of *new* is when a new record gets added to this file.
--
Alan.