Ssh Can';t登录GCE实例,串行控制台显示等待输入
我重新启动了实例,并在串行控制台上注意到以下消息Ssh Can';t登录GCE实例,串行控制台显示等待输入,ssh,google-compute-engine,google-cloud-platform,Ssh,Google Compute Engine,Google Cloud Platform,我重新启动了实例,并在串行控制台上注意到以下消息 [....] Starting web server: apache2Apache/2.2.22 mod_ssl/2.2.22 (Pass Phrase Dialog) Some of your private key files are encrypted for security reasons. In order to read them you have to provide the pass phrases. Server [serve
[....] Starting web server: apache2Apache/2.2.22 mod_ssl/2.2.22 (Pass Phrase Dialog)
Some of your private key files are encrypted for security reasons.
In order to read them you have to provide the pass phrases.
Server [serverdomain].com:443 (RSA)
Enter pass phrase:
但是,当尝试使用适当的gcutil字符串通过终端登录时
我得到以下信息
INFO: Running command line: ssh -o UserKnownHostsFile=/dev/null -o CheckHostIP=no -o StrictHostKeyChecking=no -i /Users/kunalpatel/.ssh/google_compute_engine -A -p 22 kunalpatel@[server IP address] --
ssh: connect to host [server ip address] port 22: Connection refused
看来我被锁在机器外面了。。。除非以某种方式传递了密码短语并允许再次连接到服务器
您是否遇到过这种情况或知道其他连接方式?检查您是否为网络下的端口22配置了防火墙规则。确保您没有将shh的防火墙规则删除到计算机中 如果您能够登录到其他VM,但不能登录到这个VM,那么您可以从开发人员控制台重新启动VM
Mary其他答案都是很好的一般调试建议,但根据控制台日志,您的实例似乎配置为在串行控制台上请求SSL密码短语以解锁私钥。不幸的是,计算引擎目前没有提供将数据发送到串行控制台的方法 要解决这个问题,您需要重新配置apache以不加密磁盘上的密钥。这样,它就不会在无响应通道上出现提示时中断引导过程