Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenSSH client is not able to forward a privileged port #1350

Closed
mbulandra opened this issue Feb 28, 2019 · 4 comments
Closed

OpenSSH client is not able to forward a privileged port #1350

mbulandra opened this issue Feb 28, 2019 · 4 comments

Comments

@mbulandra
Copy link

mbulandra commented Feb 28, 2019

"OpenSSH for Windows" version
7.7.2.1

Server OperatingSystem
Debian 9

Client OperatingSystem
Windows 10 Pro

What is failing
When trying to forward a privileged port, it fails and an error message is diaplyed, no mater if cmd or powershell window is elevated or not. Adding -v for verbose output does not change anything.

> ssh -vvv -L 443:192.168.0.1:443 user@remotehost
Privileged ports can only be forwarded by root.

Expected output
When launching the same connection with Putty, it works:

> netstat -na | find ":443"
  TCP    127.0.0.1:443          0.0.0.0:0              LISTENING

Actual output
Privileged ports can only be forwarded by root.

@boeckwurst
Copy link

Please read the changes history and look at v1.0.0.0-Beta.

Did you try running ssh.exe as SYSTEM user?
See "You may use psexec -s cmd to open up cmd.exe running as SYSTEM."

@manojampalam
Copy link
Contributor

Windows does not have privileges ports. Looks like you are seeing this due to Unix specific condition checks on the client side.

As a work around, use a port over 1024.

@NoMoreFood
Copy link

That port check was removed in 7.8 (commit). Please try upgrading to the 7.9.

@mbulandra
Copy link
Author

Upgrading to v7.9.0.0p1-Beta solves the problem. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants