我有一个google cloud vm实例 .

它工作得很好 .

Up on till now:

我有以下权限来编辑必要的文件,工作得很好 .

sudo adduser rsa-key-2018071 www-data 
sudo chown -R www-data:www-data /var/www
sudo chmod -R g+rwX /var/www

What happened:

为了查看 cronjob log ,我需要在 /etc 文件夹中编辑 rsyslog.conf ,我还没有获得许可 .

所以,作为一个总菜鸟,我执行了 sudo chmod -R g+rwX /etc ,然后突然间,我无法从谷歌控制台连接到 filezillSSH .

Error Log:

FileZilla :服务器意外关闭网络连接 .

Google SSH :与SSH服务器通信时发生错误 . 检查服务器和网络配置

What I tried to fix it:

  • "View gcloud command":我检查了 /home 文件夹,它通常有putty密钥用户,它现在有 lost+found 文件夹 . cd /home 然后 ls

  • 已启用 interactive serial console ,但它要求登录信息,我可以't seem to be able to find out at all (don'记得在制作vm实例时进行任何登录信息) .

  • 试图手动登录Putty,但没有成功 .

此时,我不知道我还能做些什么才能访问ssh . 该网站有效,但这有点令人沮丧 .

任何帮助都感激不尽!