错误:(gcloud.compute.ssh) [/usr/bin/ssh] 退出并返回代码 [255] [英] ERROR: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255]

查看:23
本文介绍了错误:(gcloud.compute.ssh) [/usr/bin/ssh] 退出并返回代码 [255]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在空闲几秒钟后,我一直被踢出我的计算引擎实例,并显示指示的错误 (255).我使用gcloud compute ssh"登录.我正在使用默认的防火墙设置,我相信这对于 ssh 来说已经足够了.但是,如果我遗漏了什么,请指出并建议修复此错误.基本上我现在无法完成任何有效的工作,必须多次 ssh.

I kept getting kicked out of my compute engine instance after a few seconds of idle with the indicated error (255). I used 'gcloud compute ssh' to log in. I am using the default firewall setting, which I believe would be good enough for ssh. But if I am missing something, please so indicate and suggest the fix for this error. Basically I can't get any efficient work done at this point having to ssh in so many times.

提前致谢.

啊——

推荐答案

gcloud 会在设置发生更改时拒绝 ssh 连接,例如在您更改默认地区或区域后,或者您创建了另一个实例之后.然后,您必须通过

gcloud denies an ssh connection if there was a change in the setup, e.g. after you changed your default zone or region, or you created another instance. Then, you must update the ssh keys in your metadata by

sudo gcloud compute config-ssh

如果这抱怨存储 ssh 密钥条目的配置文件中的不同条目,~/.ssh/config,请删除此文件并再次执行上述命令.

If this complains about different entries in your config file where your ssh key entries are stored, ~/.ssh/config, delete this file and execute the above command again.

如果你安装了没有sudo的gcloud,你可以省略sudo.

If you have installed gcloud without sudo, you can omit sudo.

这篇关于错误:(gcloud.compute.ssh) [/usr/bin/ssh] 退出并返回代码 [255]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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