Microsoft Secure Tech Accelerator
Apr 03 2024, 07:00 AM - 11:00 AM (PDT)
Microsoft Tech Community

Limit Source in Firewall for localhost:22

Iron Contributor

I've installed OpenSSH into my Windows 10 machine. The limited purpose is to remote out to one Linux server. Adding the OpenSSH server component opens my local port 22 to inbound SSH. Without that, my attempt to call ssh is refused; with it, my call to ssh works fine. However, it seems a security hole to allow incoming scans to port 22. I would like to limit it to only this machine, if that would work.

 

1. Would that still allow me to update a remote server? That should still work, assuming the firewall is stateful and would allow pings back once I've reached out to the remote computer.

 

2. How can I limit the open port to only this source?

 

0 Replies