大网数据广告活动
服务器运维问答

Can't SSH Into Cloud Endure Replicated VM on Google Cloud Compute

· 52CE 我爱测

I'm having trouble SSHing into a VM I am trying to migrate to the cloud. I used the "Cloud Endure" option from google's migration doc's. I tried yesterday and realized in my LAN the only way to log in via SSH is if my LDAP server…

问题原文

原帖链接 · FreeSoftwareServers · CC BY-SA 4.0

I'm having trouble SSHing into a VM I am trying to migrate to the cloud. I used the "Cloud Endure" option from google's migration doc's.

I tried yesterday and realized in my LAN the only way to log in via SSH is if my LDAP server is running, so I enabled SSH Login via PWD and confirmed it worked with my LDAP server off and then started the replication process again.

I am having the same problem as yesterday, I don't get an error from PuTTY like refused key, or any prompts. Just "Connection Refused".

I tried adding the network tag "default-allow-ssh" to the network tags section but still same error. I pay for internet per GB so I'm hesitant to try replicating again, also I have no idea what to change next.

Does any body have any experience using Cloud Endure and having SSH troubles after?> Suggestions or more information needed?

The distro is Ubuntu 14 just fyi.

Also, this could be a separate question, but is there no "Remote Console" in google cloud so that I could login as if I was local? This seems ridiculous to me as it is always my backup solution if I somehow break SSH.

Update:

Not sure if this should work as I only have 1 other working VM in the network, but I can't ping the VM from another working VM on the same VPC. (I assume same VPC, different "project", but same account and the private IP's are the same except ending in .2 and .3 respectively) I'm new to "the cloud"..., much prefer having total control. (I can ping the public IP from my LAN)

I tried SSH'ing into the VM via the working VM on the same VPC and it just hung, no errors.

已采纳解答

原帖链接 · Patrick W · CC BY-SA 4.0

Make sure there is a firewall rule to allow traffic to your instance on port 22. The fact that SSH just hangs sounds like a firewall issue. Also check the base image (the one you imported) does not have any internal firewall or iptable rules that can block SSH connections

For non Google provided images, you need to make sure to install the Linux Guest Environment as well to enable GCP to communicate with your instance and transfer data like SSH keys or other metadata.

Finally, since you used CloudEndure, you can check their FAQ or contact their support. They offer great support and can help make sure the image they imported is properly prepared to run on the Google Cloud.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-06-08)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。