gpt4 book ai didi

ssh - Openstack/Nova : No route to host when I'm trying to ssh instance

转载 作者:行者123 更新时间:2023-12-04 06:40:42 26 4
gpt4 key购买 nike

由于 devstack,我运行了一个安装了 Openstack 的小型 dev vagrant box。一切运行良好,但我无法通过 ssh 连接到我的新实例。
当我尝试 ssh -i ~/.ssh/id_rsa cirros@10.0.0.2 时,我收到以下消息:

ssh connect to host 10.0.0.2 port 22: No route to host

我的安全组规则很好,但我找不到问题。

最佳答案

一个有用的资源是 RDO Website .

来自 Networking :

Verify that traffic to port 22 and ICMP traffic of any type (-1:-1) is allowed in the default security group.
Verify that you can ping and SSH the host where the instance is running From the host where you are attempting to connect to your instance, verify that network traffic is being correctly routed to the compute node in question.


ip netns list
# Identify virtual router to which your subnet is connected
ip netns exec qrouter-YOUR-OVSROUTER-ID ping YOUR-INSTANCE-IP
# IP address and qrouter ID correspond to the network namespace and private IP address for instance

如果那工作正常,您的网络工作正常。
您可以尝试重新启动以下服务:
sudo systemctl restart neutron-metadata-agent.service 
sudo systemctl restart neutron-dhcp-agent.service

关于ssh - Openstack/Nova : No route to host when I'm trying to ssh instance,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18433643/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com