I guess you refer to the destination machine's ip being changed.
If the dest. ip is defined in the source server (<home>/.ssh/known_hosts), then you have to remove that entry from the file. And when you connect next time, It will warn whether you want to connect or not. Saying yes would add new dest. ip in the source server file.