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

查看:168
本文介绍了错误:(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.

谢谢.

Anh-

推荐答案

如果设置发生更改,例如,gcloud拒绝ssh连接. 更改默认区域或区域或创建另一个实例后. 然后,您必须通过以下方式更新元数据中的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天全站免登陆