Asked on Super User by itsmarziparzi, 2 years ago. No reply there for at least a week.
"Access Denied' for SSH with port forwarding on Windows when it works fine if I use private address without port forwarding
On Windows 10, I had set up OpenSSH server. In the firewall I allowed inbound port 22 like so: New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH SSH Server' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22 -Program C:\Windows\System32\OpenSSH\sshd.exe When I use my private ip address with port 22 to access this server with ssh, it works. After that I went to my router configuration to set up port forwarding so that port 22 of the public ip address would be forwarded to port 22 of the private ip address. Trying ssh connection to port 22 of the public ip address via
This question is one of 1 report of the same problem:
"Access Denied' for SSH with port forwarding on Windows when it works fine if I use private address without port forwarding
Nobody has answered it yet, here or anywhere.
Related problems
Question by itsmarziparzi on Super User, licensed CC BY-SA. We show a short excerpt and link to the original thread as credit.