This loop doesn't terminate early if `ssh_open?` returns true, it'd be better to use `ip = addresses.find { |addr| ssh_open?(addr) }`