Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Wenn Sie eine Deep Learning VM Images-Instanz starten, wird eine JupyterLab-Sitzung initialisiert.
Zum Einrichten der SSH-Portweiterleitung führen Sie die folgenden Schritte aus und greifen dann über einen lokalen Browser auf die JupyterLab-Sitzung zu:
Führen Sie den folgenden Befehl mithilfe der Google Cloud CLI in Ihrem bevorzugten Terminal oder in Cloud Shell aus:
Problem: Sie versuchen, eine Verbindung zum falschen TCP-Socket herzustellen.
Lösung:
Auf einigen Linux-Clients wird der Localhost in die IPv6-Loopback-Adresse (::1) aufgelöst. Prüfen Sie dies mit ping -c 1 localhost. Wenn dieser Befehl die IPv6-Adresse zurückgibt, verwenden Sie im Befehl gcloud compute ssh-L 8080:127.0.0.1:8080 anstelle von -L 8080:localhost:8080.
Stellen Sie sicher, dass Sie auf Ihrem lokalen Client eine Verbindung zu http://localhost:8080 (anstelle von https://localhost:8080) herstellen.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-03-27 (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)."]]],[]]