If the script is rerun after the deployment was reverted, local SSH configuration needs to be updated to match the current setup.