错误:(gcloud.compute.ssh)[/usr/bin/ssh]退出,返回码为[255]

编程入门 行业动态 更新时间:2024-10-27 00:33:30
本文介绍了错误:(gcloudpute.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]

本文发布于:2023-11-24 09:21:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1624642.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   compute   gcloud   ssh   bin

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!