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

I have Cygwin with SSH server installed (Windows 7). After setting up I can login locally using "ssh localhost -l [myUsername]". I input my password. Success.

However, trying to SSH to the machine remotely from a different machine connects, but ALWAYS rejects the password with "permission Denied". There is no connectivity problem, obviously I'm connecting. Firewall settings are all OFF.

Why is that happening?

share|improve this question
up vote 2 down vote accepted

Run the following commands, after taking a backup of the files, and then restart the ssh service.

mkpasswd -l > /etc/passwd

mkgroup -l > /etc/group
share|improve this answer
yep. that did it. thanks. – ron M. Jan 31 '13 at 22:31

edit sshd_config and ensure the following is set:


save the file and restart sshd. This will force the sshd daemon to listen on all network interfaces.

share|improve this answer
no effect. still permission denied from any remote machine. and I did stop/start sshd – ron M. Jan 30 '13 at 19:23
Shouldn't you just remove the line all together? Or is that the same thing? – Eric Fossum Jan 30 '13 at 20:56

I had the same problem and I spend a few hours trying to solve it. But solution is very simple. Problem lie in user name. If you login locally Windows is not case sensitive. But if you login "remotely" you have to take care of it. You must write user name exactly how it was defined in Windows.

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.