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'm trying to login automatically from a linux machine to a Windows Server 2003 which has installed openssh, I've generated the ssh keys and added to the authorized_keys on the W2k3 server but always ask for the password, I don't know if I'm doing something wrong or something is incompatible between them, any hint?

Thanks, Sergio.

share|improve this question

This is most likely that your identity key file permissions are not secure or you are not using the correct key.

You need to run the following from the linux client machine

ssh -vvv <username>@<hostname> -i <identify_file> 

To see the debug information and that should either tell you what is going wrong or allow you to edit your question with the information required to get a more accurate answer.

share|improve this answer

Can you try to connect to the Windows machine with ssh -v ? The verbose trace may indicate something. Look specifically for lines that say Authentications that can continue and Next authentication method. It will indicate whether the client is even attempting the use the public-key authentication method.

Also, in the sshd_config on the windows server, make sure the option PubkeyAuthentication is set to yes (I do not know what the default setting may be.

share|improve this answer

If it's asking for your password, then it's something you didn't set up properly. If it's asking for your passphrase, then sounds like you want to use an ssh-agent (*BSD / Linux, etc) or something like PageNt (from PuTTy) on 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.