问题原文
原帖链接 · Zaid · CC BY-SA 3.0
I am using Google Compute engine to host couple of sites but I resize the disk and then restarted the instance and now I am unable to connect both from gcs and putty. ( Connection Refused )
Serial console output: http://pastebin.com/BZicx7JN
how can I troubleshoot this ?.
社区高分解答
原帖链接 · Quang Trần · CC BY-SA 4.0
I had the same issue with one of my GCP VM instance. My solution was:
- Shut down the instance
- Click 'Edit' for the instance
- Under 'Custom Metadata' section, add 'startup-script' key, with value:
#! /bin/bash
sudo ufw allow 22
- Click 'Save'
- Start the instance again, and SSH into it
Hope it helps!
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
