Hi,
SSH to VM2 from VM1 can be achieved using the Private IP address. You can first login to the VM1 and then use the VM1's Private IP and try doing an SSH.
Can you also post the exact error that you are getting ?
Regards,
Karthik Srinivas
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I want to implement a solution for an application server (VM1) and a database server (VM2) which allows me to SSH into VM2 from VM1 in the same Virtual Network. VM1 has a public IP address and ports 22 & 80 are allowed in the NSG Group while VM2 has a private IP address with ports 22 & 3306 enabled. I have been unable to SSH into VM2 from VM1 as I got a "bad permission error" response, despite applying NAT & Bastion. Please help, there must be something I am missing.
Hi,
SSH to VM2 from VM1 can be achieved using the Private IP address. You can first login to the VM1 and then use the VM1's Private IP and try doing an SSH.
Can you also post the exact error that you are getting ?
Regards,
Karthik Srinivas
Hi
a few queries that may help:
Do the VM's reside in the same Subnet within the VNET, or different Subnets?
Do you have NSG's applied at VNET, Subnet or directly on the VM NICs?
Have you tried using Azure Network Watcher to assist with diagnosing the connectivity between the 2 endpoints?
Hope this helps,
Thanks
Michael Durkan