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 done a password less ssh configuration between Linux/Unix , Windows and Unix. But first time I am configuring between HP-UX and Windows 2003.

For configuring, I installed OpenSSH(client & server) at the Windows 2003 machine and generated the key at HP-UX and placed the key at the Windows 2003 machine users homedirectory/.ssh

I'm trying the execute the ssh for executing command on Windows 2003 from the HP-UX as I am expected it have to run without password, but it is asking for password.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

If you generated the keypair without a pass phrase then check the configuration of your windows sshd. Ensure that PubkeyAuthentication is yes (or not defined as the default is yes). You can force public key authentication by disabling password login, PasswordAuthentication No.

If this doesn't help then please post the output of ssh -v user@host.tld as an update to your question.

share|improve this answer
    
debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received *USAGE WARNING* debug1: Authentications that can continue: publickey,password,keyboard-interacti ve debug1: Next authentication method: publickey debug1: Trying private key: /home/d400213/.ssh/id_rsa debug1: Trying private key: /home/d400213/.ssh/id_dsa debug1: Next authentication method: keyboard-interactive –  kishore Aug 25 '11 at 13:17
    
debug1: Next authentication method: password Administrator@172.202.230.20's password: debug1: Authentication succeeded (password). debug1: channel 0: new [client-session] debug1: Entering interactive session. Last login: Thu Aug 18 14:37:31 2011 from usmnm201.in.telstra.com.au Microsoft Windows [Version 5.2.3790] (C) Copyright 1985-2003 Microsoft Corp. –  kishore Aug 25 '11 at 13:19
    
This looks to me like you don't have a private key file in /homed400213/.ssh/... –  Iain Aug 25 '11 at 14:26
    
lain , we are having the private key in place: $ pwd /home/d400213/.ssh $ ls -ltr total 64 -rw------- 1 d400213 users 684 Aug 20 19:09 authorized_keys -rw-r--r-- 1 d400213 users 540 Aug 20 21:24 known_hosts -rw------- 1 d400213 users 887 Aug 25 23:47 id_rsa -rw-r--r-- 1 d400213 users 226 Aug 25 23:47 id_rsa.pub –  kishore Aug 25 '11 at 14:31
    
@lain , after restarting openssh we are getting the below message: debug1: Next authentication method: publickey debug1: Offering public key: /home/d400213/.ssh/id_rsa debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Trying private key: /home/d400213/.ssh/id_dsa debug1: Next authentication method: keyboard-interactive debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: password –  kishore Aug 25 '11 at 15:05

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.