As of the 154.0.0 release of the Cloud SDK, datalab connect
no longer works on Windows
#1356
Comments
This change updates the `datalab` command line tool so that the `-o` option to the `gcloud compute ssh` command is only passed when running on Posix systems (e.g. Linux and Mac OS X). This is necessary because some SSH clients (notably, PuTTY) do not support that option, so passing it in can cause the SSH client to error out. This was not an issue prior to the 154.0.0 release of the Cloud SDK, as earlier versions would filter out the `-o` flag when running on Windows. However, with 154.0.0 that filtering has been removed and the `-o` option is passed in as-is. This fixes #1356
This change updates the `datalab` command line tool so that the `-o` option to the `gcloud compute ssh` command is only passed when running on Posix systems (e.g. Linux and Mac OS X). This is necessary because some SSH clients (notably, PuTTY) do not support that option, so passing it in can cause the SSH client to error out. This was not an issue prior to the 154.0.0 release of the Cloud SDK, as earlier versions would filter out the `-o` flag when running on Windows. However, with 154.0.0 that filtering has been removed and the `-o` option is passed in as-is. This fixes #1356
Version 155.0.0 of the Cloud SDK was released this morning, and that latest version includes the fix for this issue. |
@TheOddler No, I believe what you are seeing is a different issue. It looks like what you are hitting is an issue with the If that is correct (i.e. you try those other two commands and they work), then please file a bug against the Cloud SDK using this link. |
@ojarjur Sorry for the late response, but I finally tried it out, and indeed, it seems to be a problem with the As a reference, the bug report can be found here: https://issuetracker.google.com/issues/72889463 |
It seems that with release 154.0.0, the
gcloud compute ssh
command took out the platform-specific sanitation that it performed on SSH flags.Previously, passing in
--ssh-flag=-o --ssh-flag=LogLevel=info
was a no-op on Windows, as the gcloud command new to ignore the-o
option since PuTTY does not support it.As of the 154.0.0 release, however, this is no longer the case, and the -o flag is passed to PuTTY, which then fails saying it does not recognize that option.
The known work-arounds for this issue are:
datalab connect
The text was updated successfully, but these errors were encountered: