Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
Can you please elaborate your environment?
- From your verbatim, you are using an Azure VM to connect to third party external site on Port 22 (SFTP)
- Is this correct?
- In that case, it is possible that the destination server is blocking your access
- Either via Network (your IP) or via Authentication (credentials)
- Did you reach out to the SFTP Site provider and check if the packets are arriving or not?
- May I ask how you are confirming this is a Port blocked/networking issue from Azure end and not the destination.
By default, Azure NSGs don't block outbound access on Port 22 - so you should be able to connect.
- Do you have Azure Firewall deployed?
- From this VM, open Powershell as admin and run
- Test-NetConnection -ComputerName "<YOURSFTPServer>" -Port 22
- From a regular server (your local laptop), open Powershell as admin and run
- Test-NetConnection -ComputerName "<YOURSFTPServer>" -Port 22
- And share the results of both please.
Cheers,
Kapil