azure cloud service port forwarding

390 views Asked by At

I have a cloud service - CS1. I have two IaaS Linux VMs in CS1. Lets call the vms - vm1 and vm2.

CS1, vm1 and vm2 are all in one vnet in one region.

Both vms have internal ips and have ssh setup.

The endpoints are setup as follows:

VM NAme Protocol Public Port Private Port

vm1 SSH TCP 22 22

vm2 SSH TCP 23 22

No ACLs on the endpoints. No firewalls on the linux machines.

I can ssh into vm1 using port 22 like so - ssh -p 22 [email protected] but I cant ssh into vm2 using port 23 - ssh -p 23 [email protected]

Once I ssh into vm1 , then I can ssh into vm2 using vm2's private ip. Why can i not ssh into vm2 using the public address. Is there some cloud service setting or some azure firewall or anything im missing here?

0

There are 0 answers