gcloud compute ssh 停止
gcloud compute ssh stops
我正在使用 gcloud ssh 连接 gce。
> gcloud compute --project "first-medium-2****8" ssh --zone "us-east1-b" "instance-2"
我输入上面的命令给powershell,但是它回复
>Using username "hogehoge".
>Authenticating with public key "DESKTOP-****hogehoge"
然后停下来。毕竟什么都没发生
昨天我也做了同样的事情,没有问题。
但是今天,我不能。我尝试了 gcloud init 并重新安装了 gcloud。
但没有任何改变。我应该怎么做才能解决这个问题?
补充信息。
OS Windows10
Google 云 SDK 237.0.0
PowerShell 5.1.17134.590
Putty 0.70(只安装一个)
note1:我发现我可以毫无问题地使用云 shell。
但是,云 shell 有 timeout.So 我更喜欢 gcloud 而不是云 shell。
note2:当我使用云shell时,它连接为"tomotomo"。
不是 "hogehoge" 我使用 gcloud 时的用户名。
当我运行"gcloud compute ssh VM_NAME --verbosity=debug --log-http"
它回复
>DEBUG: SSH Known Hosts File [C:\Users\hogehoge\.ssh\google_compute_known_hosts] could not be opened: Unable to read file
[C:\Users\hogehoge\.ssh\google_compute_known_hosts]: [Errno 2] No such file or directory: u'C:\Users\hogehoge\.ssh\goo
gle_compute_known_hosts'
DEBUG: Current SSH keys in project: [u'tomotomo:ssh-rsa AAAAB***
DEBUG: Running command [C:\Users\hogehoge\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\sdk\putty.exe -t -i C:\User
s\hogehoge\.ssh\google_compute_engine.ppk hogehoge@3*****].
DEBUG: Executing command: [u'C:\Users\hogehoge\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\sdk\putty.ex
e', u'-t', u'-i', u'C:\Users\hogehoge\.ssh\google_compute_engine.ppk', u'hogehoge@3*****']
很长,所以我只摘录了我认为重要的部分。
运行 "putty -cleanup" 根据@redpawn 解决了这个问题。
运行
putty -cleanup
解决了这个问题。
Putty 在注册表中保存一些信息。(IP 地址,public 密钥等)
此命令删除那些注册表和随机种子文件。
我正在使用 gcloud ssh 连接 gce。
> gcloud compute --project "first-medium-2****8" ssh --zone "us-east1-b" "instance-2"
我输入上面的命令给powershell,但是它回复
>Using username "hogehoge".
>Authenticating with public key "DESKTOP-****hogehoge"
然后停下来。毕竟什么都没发生
昨天我也做了同样的事情,没有问题。
但是今天,我不能。我尝试了 gcloud init 并重新安装了 gcloud。
但没有任何改变。我应该怎么做才能解决这个问题?
补充信息。
OS Windows10
Google 云 SDK 237.0.0
PowerShell 5.1.17134.590
Putty 0.70(只安装一个)
note1:我发现我可以毫无问题地使用云 shell。 但是,云 shell 有 timeout.So 我更喜欢 gcloud 而不是云 shell。
note2:当我使用云shell时,它连接为"tomotomo"。 不是 "hogehoge" 我使用 gcloud 时的用户名。
当我运行"gcloud compute ssh VM_NAME --verbosity=debug --log-http"
它回复
>DEBUG: SSH Known Hosts File [C:\Users\hogehoge\.ssh\google_compute_known_hosts] could not be opened: Unable to read file
[C:\Users\hogehoge\.ssh\google_compute_known_hosts]: [Errno 2] No such file or directory: u'C:\Users\hogehoge\.ssh\goo
gle_compute_known_hosts'
DEBUG: Current SSH keys in project: [u'tomotomo:ssh-rsa AAAAB***
DEBUG: Running command [C:\Users\hogehoge\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\sdk\putty.exe -t -i C:\User
s\hogehoge\.ssh\google_compute_engine.ppk hogehoge@3*****].
DEBUG: Executing command: [u'C:\Users\hogehoge\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\sdk\putty.ex
e', u'-t', u'-i', u'C:\Users\hogehoge\.ssh\google_compute_engine.ppk', u'hogehoge@3*****']
很长,所以我只摘录了我认为重要的部分。
运行 "putty -cleanup" 根据@redpawn 解决了这个问题。
运行
putty -cleanup
解决了这个问题。
Putty 在注册表中保存一些信息。(IP 地址,public 密钥等)
此命令删除那些注册表和随机种子文件。