Try the private IP if the public IP is not available when ssh'ing