If Quarantine Policy is enabled, access to overlay VMs is restricted and if you need to log in to one remotely, you need to use the vm-override-sg security group.
To access an overlay VM using SSH or RDP, do the following:
Apply the vm-override-sg security group to this VM. This takes the VM out of the vm-overlay-sg security group and becomes open for remote login.
Use port 8888 to reach Ubuntu VMs using SSH.
You can reach Windows VMs using RDP using the standard port, but only via a jump host.
After completing your task in the VM using remote login, remove the vm-override-sg security group from the VM. NSX Cloud automatically attaches the appropriate security group to VMs within 60 seconds.