Problema: stai tentando di connetterti alla porta TCP sbagliata.
Soluzione:
Su alcuni client Linux, localhost si risolve nell'indirizzo loopback IPv6 (::1). Verificalo utilizzando ping -c 1 localhost. Se questo comando restituisce
l'indirizzo IPv6, utilizza -L 8080:127.0.0.1:8080
(anziché -L 8080:localhost:8080) nel
comando gcloud compute ssh.
Assicurati di connetterti a http://localhost:8080
(anziché a https://localhost:8080) sul client locale.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-06-12 UTC."],[[["A JupyterLab session is initialized when you start a Deep Learning VM Images instance."],["You can set up SSH port forwarding to access your JupyterLab session through a local browser using the `gcloud compute ssh` command."],["The `gcloud compute ssh` command requires you to specify your project ID, zone, and instance name."],["If using Cloud Shell, you might need to add a `-4` flag to the SSH command to connect via IPv4."],["If you encounter connection issues, ensure you are using the correct localhost IP address (127.0.0.1 instead of ::1) and protocol (http instead of https)."]]],[]]