Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
share|improve this question
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.

share|improve this answer

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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