4033 | IAP refused the tunnel | Check roles/iap.tunnelResourceAccessor, and that the bastion is still running |
4003 | IAP cannot reach port 22 on the bastion | Allow ingress on tcp:22 from 35.235.240.0/20 to the bastion |
… API has not been used in project … or it is disabled under last stderr: | gcloud needs an API that is off | Enable the API that the line names, for example gcloud services enable oslogin.googleapis.com. Permissions lists the APIs |
4047 | IAP cannot find the bastion | It is still starting or was stopped. Run bqto connect again |
Permission denied (publickey) | OS Login refused the SSH certificate. A new bastion can refuse it while it boots, so bqto retries for up to a minute before it reports this | Grant roles/compute.osLogin on the project |
SSH using certificates is not yet generally available | gcloud is older than 550.0.0 | Run gcloud components update, or use your package manager (apt, dnf, brew) if you installed gcloud with one |
Address already in use, Cannot bind port | Another program took the port of the tunnel while the tunnel started | Run bqto connect again |
ADC account (…) does not match the active gcloud account (…) | The two logins use different accounts | Run the command that bqto prints. Both logins must be the same account |
x509: certificate signed by unknown authority | This machine has no CA certificates (common in slim containers), or a TLS-inspecting proxy shows its own certificate | Install the CA certificates (apt-get install ca-certificates on Debian or Ubuntu), or add the CA of the proxy |