Remove entry in ~/.ssh/known_hosts This is required if host key replaced in target server. ssh-keygen -R HOSTNAME ssh-keygen -R IP_ADDRESS References Change Host Keys Used by SSH Connections