ssh - GCP Compute Engine // 连接被拒绝错误:(gcloud.compute.ssh)[/usr/bin/ssh] exited with return code [255]
问题描述
在 GCE 上工作.. 我认为引导磁盘超出容量。顿时僵住了。并且发生以下错误时
gcloud compute ssh
ssh: connect to host {my external address} port 22: Connection refused
ERROR: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255].
地位
gcloud compute firewall-rules list
NAME NETWORK DIRECTION PRIORITY ALLOW DENY DISABLED
allow-superset-related default INGRESS 1000 tcp:22,tcp:8080,tcp:80,tcp:443,tcp:8088,tcp:8888,tcp:13080 False
default-allow-8080 default INGRESS 1000 tcp:8080,tcp:15672,tcp:5555 False
default-allow-http default INGRESS 1000 tcp:80 False
default-allow-https default INGRESS 1000 tcp:443 False
default-allow-icmp default INGRESS 65534 icmp False
default-allow-internal default INGRESS 65534 tcp:0-65535,udp:0-65535,icmp False
default-allow-rdp default INGRESS 65534 tcp:3389 False
default-allow-ssh default INGRESS 65534 tcp:22 False
nmap {my external ip}
Starting Nmap 7.80 ( https://nmap.org ) at 2020-09-10 19:14 KST
Nmap scan report for **
Host is up (0.0032s latency).
Not shown: 995 closed ports
PORT STATE SERVICE
135/tcp filtered msrpc
139/tcp filtered netbios-ssn
445/tcp filtered microsoft-ds
2869/tcp filtered icslap
4444/tcp filtered krb524
Nmap done: 1 IP address (1 host up) scanned in 1.25 seconds
gcloud compute connect-to-serial-port {my_instance}
...
[[0;32m OK [0m] Started Update UTMP about System Runlevel Changes.
[[0;32m OK [0m] Started Raise network interfaces.
[[0;32m OK [0m] Reached target Network.
[[0;32m OK [0m] Reached target Network is Online.
You are in emerg
Cannot open access to console, the root account is locked.
See sulogin(8) man page for more details.
Press Enter to continue
串行端口不是交互式的。
谁能帮忙?
解决方案
推荐阅读
- java - 通过 Java 程序发送电子邮件
- android - 如何对齐两个相邻的按钮?
- php - 将关联数组传递到 Laravel 5.8 中的 where caluse
- python - PyDotPlus 无法解析节点属性中带有 '\"' 的点
- angularjs - 如何停止对同一网址的双重请求
- python - TFRecords 解析:无法解析序列化示例
- ruby-on-rails - 如何在 Rails 中按第二个订单 belongs_to 分组?
- c# - 最大化/调整大小以显示 Windows-10 C# UWP 应用程序的分辨率?
- spring - 什么是 Wiremock,我可以用它在 Spring 中测试我的 Rest API 吗?
- c# - 将 iTunes 商店中的 Json 反序列化为 C# 对象