when $instance->ipaddress is undef, try ssh with $instance->privateIpaddress