PuTTy“未知选项-o"尝试连接时 [英] PuTTy "unknown option -o" when trying to connect

查看:87
本文介绍了PuTTy“未知选项-o"尝试连接时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按照

然后,在确定错误时,

连接中断正在尝试重新连接...

在命令提示符中

知道如何以不同的方式生成密钥以允许我连接吗?

解决方案

作为一种解决方法,您可以尝试从 Cloud Shell 内部运行 datalab connect demo 命令,或降级到版本 153.0.Cloud SDK 的 0.

至于您的错误,这似乎是 Cloud SDK 154.0.0 版本中新引入的错误.

在此之前,运行像 gcloud compute ssh --ssh-flag=-o --ssh-flag=LogLevel=info demo 这样的命令会导致-o LogLevel=info" 标志在 Windows 上运行之前从命令中删除.

但是,在最新版本 (154.0.0) 中,这些标志现在按原样传递给 SSH 命令.这会在 Windows 上导致错误,因为 PuTTY CLI 不支持 -o 标志.

我已提交https://github.com/googledatalab/datalab/issues/1356 跟踪修复此问题.

很抱歉让您受到了打击.

following the getting started guide I attempt to create & connect to a datalab vm instance with the command:

datalab create demo

but I get the following pop-up:

then, on ok-ing the error,

connection broken
Attempting to reconnect...

in the command prompt

Any idea how to have the keys generated a different way to allow me to connect?

解决方案

As a workaround, you can try either running the datalab connect demo command from inside of Cloud Shell, or downgrading to version 153.0.0 of the Cloud SDK.

As for your error, this seems to be a newly introduced bug in the 154.0.0 release of the Cloud SDK.

Prior to that, running a command like gcloud compute ssh --ssh-flag=-o --ssh-flag=LogLevel=info demo would have resulted in the "-o LogLevel=info" flag being stripped out of the command prior to it running on Windows.

With the most recent release (154.0.0), however, those flags are now passed to the SSH command as-is. This causes an error on Windows, as the PuTTY CLI does not support the -o flag.

I've filed https://github.com/googledatalab/datalab/issues/1356 to track fixing this issue.

Sorry that you got hit by this.

这篇关于PuTTy“未知选项-o"尝试连接时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆