Once openSSH/Cygwin is installed and working on Windows 7, it seems like any user you use to ssh into the Windows 7 box takes on plain user privileges. That is, the user cannot execute privileged commands even if the user is an Administrator.

Is there a way for a Cygwin SSH user to acquire elevated user privileges? (e.g. "sudo") Or is that a limitation of Cygwin as it stands right now? (e.g. like Cygwin's ping)

Relevant technical info:

  • Windows 7 (64-bit) Home Premium
  • Cygwin 1.7.x
  • Is this not because cygwin itself runs as a standard user? – user3914 Jul 28 '10 at 2:59

If you log in to sshd with password authentication, then you authenticate simultaneously to Windows and should be granted your account's administrative rights. If you log in with public key authentication, then sshd makes an end run around Windows authentication, and you'll only ever have standard user rights.

For more information, see Corinna's answer to this question from 2004. See also the recent thread on the Cygwin mailing list about admin rights over ssh.


Chech freeSSHd, I think it will allow you an Administrator access.
But you will not be logging in through Cygwin here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.