Linux规模设置vm实例ssh连接被拒绝 [英] Linux scale set vm instance ssh connection refused

查看:92
本文介绍了Linux规模设置vm实例ssh连接被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


创建带有两个实例的vm规模集后,我获得了负载均衡器的公共地址和两个端口:50002& 5000这两个vms是linux机器。

after creating the vm scale set with two instances i got the public address of the load balancer and the two ports: 50002 & 50003 the two vms are linux machines.


当我想连接到其中一个实例时:ssh username @ ippublicLB -p 50002,unfortunotley它给了我拒绝连接。我在这里错过了什么,请你能帮助我吗?谢谢

when i want to connect to one of the instance : ssh username@ippublicLB -p 50002 , unfortunotley it gave me connection refused . am i missing something here , please can you help me ? thanks indeed

推荐答案

 

Hi, 

您可以导航到您的子网以及部署VMSS的位置。如果您有与子网关联的NSG,请确保添加规则以允许端口22.如果您尚未将任何NSG关联到VMSS子网,那么它们将是不同的问题。 

Can you navigate to your subnet and in which your VMSS is deployed. If you have NSG associated to the subnet, make sure you add, a rule to allow port 22. If you haven't associated any NSG to the VMSS subnet, then it would be different issue all together. 

还可以检查VMSS的负载均衡器设置是否作为NAT规则定义到后端端口22. 

Also can check if Load balancer settings of your VMSS as NAT rules are defined to Backend port 22. 

问候, 

Msrini 

Msrini 


这篇关于Linux规模设置vm实例ssh连接被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆