This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: How to use ssh.exe from Windows XP?





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@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@server_name

You should be logged-in to the specified server without being prompted
with the password.

      Sameh

-----Original Message-----
Tawfik, Sameh E <SamehTawfik <at> 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]