I am using CentOS.
I have a management server which has password-less ssh access to four other servers. I don't have physical access to these servers. In other words, I have to make all configurations over ssh.
I want to create a bash script on the management server to change the IP address for the other servers, but if I give a wrong IP (ex. the IP used in network), the management server will lose access to the other server.
What can I do to prevent or mitigate this problem?