X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: How to use ssh.exe from Windows XP? Date: Wed, 8 Feb 2006 14:40:40 -0800 Message-ID: From: "Tawfik, Sameh E" To: X-IsSubscribed: yes 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 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k19EqJWV001865 Here are the steps to accomplish this task: From a LINUX HOST SERVER 1. From your home folder, run the following command: ssh-keygen -t dsa -b 1024 -N '' <-- two apostrophe's there This will create two files as follow: * ~/.ssh/id_dsa * ~/.ssh/id_dsa.pub 2. Run the following commands: * cd ~/.ssh * cat id_dsa.pub >> authorized_keys * ln -s authorized_keys authorized_keys2 The above step is needed because depending on the system, it may require the authorized_keys or authorized_keys2 file. 3. When done from the above steps, logout from the Linux server. This is an important step, without it the login will not be updated. From a USER LOCAL WINDOWS XP MACHINE Copy the private key "id_dsa" that was generated in../.ssh folder, to a local folder on Windows XP. Puttygen Run puttygen.exe to convert the "id_dsa" file to a putty format. This is because the private key file format is not specified by some standard body. To do this open "puttygen" and open the "conversions" menu and chose "Import Key" file. Then browse to the "id_dsa" file, and select "SSH-2 DSA" field. Finally click "Save private key" and save the file as "id_dsa.PPK" somewhere on disk. (PuTTYgen is an RSA and DSA key generation utility) SSH From a DOS box, run the following command: ssh user_name AT server_name The above command will create .ssh/ local folder under \Documents and Settings\username folder Copy both "id_dsa" and "id_dsa.PPK" files from the local folder as specified above to the \Documents and Settings\username\.ssh folder. After doing the above when you run: ssh user_name AT server_name You should be logged-in to the specified server without being prompted with the password. Sameh -----Original Message----- Tawfik, Sameh E fairisaac.com> writes: > All I need is just the simple sequenced instructions on how to use > C:\cygwin\bin\ssh.exe from Windows XP to login to a Linux server without > being prompted with a password? > > I know it can be done, but it's frustrating to just find the needed > steps? Try http://acd.ucar.edu/~fredrick/mpark/ssh/rsa-unix.html or something from http://www.google.com/search?q=ssh+%22authorized_keys%22 -djh Hi, I installed Cygwin on my Windows XP with SP2. C:\>ssh.exe -version OpenSSH_4.2p1, OpenSSL 0.9.8a 11 Oct 2005 I searched the mailing archives and browsed through the user guide, but did not find what I was looking for. All I need is just the simple sequenced instructions on how to use C:\cygwin\bin\ssh.exe from Windows XP to login to a Linux server without being prompted with a password? I know it can be done, but it's frustrating to just find the needed steps? By the way, I created public and private keys and I'm able to use Putty to log-in to the Linux server using my keys without entering a user name or a password, but I need to use ssh.exe instead. So can anyone let me know where I can find this information? Or just email me these steps? There should be some 1,2,3,.. steps that covers this issue somewhere? Regards, Sameh -- 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/ -- 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/