Не удается подключиться к экземпляру Google Compute Engine через SSH

2184
Rahul Singh

я новичок в облаке Google, я только что развернул свой первый экземпляр, он работал нормально до вчерашнего дня, я использовал в прошлый раз, чтобы настроить сервер электронной почты, используя этот учебный сервер электронной почты, но теперь я не могу подключиться SSH в браузере, а также с Google Cloud SDK в терминале.

Сайт работает нормально, я не знаю, что случилось Пожалуйста, помогите

сообщение об ошибке в браузере

Connection Failed, and we are unable to connect VM on port 22. 

сообщение об ошибке в терминале

Warning: Permanently added 'xxx.xxx.xxx.xxx' (ECDSA) to the list of known hosts. Permission denied (publickey). ERROR: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255]. 

И последовательная консоль выводит свои шоу

Jul 8 10:09:26 Instance sshd[10103]: error: Could not load host key:/etc/ssh/ssh_host_ed25519_key  Jul 8 10:09:27 Instance sshd[10103]: User username from 0.0.0.0 not allowed because not listed in AllowUsers  Jul 8 10:09:27 Instance sshd[10103]: input_userauth_request: invalid user username [preauth] Jul 8 10:09:27 Instance sshd[10103]: Connection closed by 0.0.0.0 [preauth] –  
0

1 ответ на вопрос

0
Jakuje

You were changing sshd configuration and you put some AllowUsers or DenyUsers options in sshd_config or something like this, which is preventing you from logging in. Not sure what exactly is it from this report.

You can try to log in with different user, but if you are not sure about configuration, it will probably not help.

I'm not familiar with google-compute-engine, but if you can connect using serial console and post you sshd_config, we can diagnose and probably fix the problem.

Похожие вопросы