Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <4123995F.9010700@alltel.net> Date: Wed, 18 Aug 2004 13:01:03 -0500 From: Ken Dibble User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Setting up SSH keys for password less connections for sftp References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit log in to the HPUX box as applmgr and run ssh-keygen as follows ssh-keygen -t rsa -N "" the quotes are important as this gives you a null passphrase It will generate "id_rsa" and "id_rsa.pub" files in $HOME/applmgr/.ssh/ copy $HOME/applmgr/.ssh/id_rsa.pub to $HOME/applmgr/.ssh/ authorized_keys2 move $HOME/applmgr/.ssh/id_rsa to the W2K box as c:\Documents and Settings\colibri\.ssh\applmgr_id_rsa on the W2K Box set the permissions on the applmgr_id_rsa file to u=rw, g=none,o=none by chmod 0600 .ssh/applmgr_id_rsa ssh -i applmgr_id_rsa applmgr AT HPUXboxhostname If I recall, the first time it prompts you for a password and generates the known hosts file. Thereafter it should be passwordless. The id_rsa file does not have to be named applmgr_id_rsa, I only did that for clarity, just make sure the filename matches the filename given by the -i option to ssh It's been a while since I've done this, but this is correct to the best of my memory. Chris Shehan wrote: >Good Afternoon, > >Thanks for your response. I have tried to work through both you answer and >the solution you provided in the web link. So far I am still unable to get >the passwordless connection to work. > >Here is my setup: >Windows 2000 server. Windows user name is colibri. I have generated the RSA >keys which were created in the c:\Documents and Settings\colibri\.ssh >directory (id_rsa & id_rsa.pub). > >The user that I wish to connect to on the HP UX server is applmgr. So I take >the id_rsa.pub file and copy it to the HPUX server. It was placed in the >/u02/app/applmgr/.ssh directly and named authorized_keys. > >Supposedly once this is done I should be able to connect to the HPUX server >from the Windows server as applmgr via ssh or sftp (example : sftp >applmgr AT finprod1 ) without being asked for a password... correct? I am still >prompted for a password. > >Or is this process assuming that I have identical users on both servers with >identical passwords? >I am sure this is a very simple setup and that I am missing something >simple. > >Please help me clarify the situation and/or point out my problem. > >Thanks again for you help, >Chris Shehan > > > > > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/