Unable to connect to SFTP server on Azure VM with public IP

Josue Gonzalez 65 Reputation points

We have a SFTP server running on an Azure VM and we cannot connect to it using the Public IP address of the virtual machine. We are able to connect via internal/private IP address.

We implemented outbound and inbound rules to allow connection via port 3388 (Source = Any, Protocol = TCP, Destination = Any) attached to the subnet and the NIC

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,205 questions
{count} votes

Accepted answer
  1. msrini-MSFT 9,261 Reputation points Microsoft Employee


    From Azure Platform perspective, you will need to make sure that inbound NSG rules are allowed on the port which SFTP listens on. Default port for SFTP server is port 22. If you have configured port 3389, then that should be fine.

    Once platform NSG are set right, you will need to check the guest OS firewall. If it is windows, then look for Windows Firewall. If its Linux, look for ip tables and check if the SFTP port is allowed.

    If none of the above works, then can you run "netstat -ano" and share the screenshot here?


    Karthik Srinivas

0 additional answers

Sort by: Most helpful