Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers

up vote 0 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
add comment

edit sshd_config and ensure the following is set:

ListenAddress 0.0.0.0

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
add comment

Your Answer

 
discard

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.