On Sep 8, 2004, at 12:35 PM, Von Fugal wrote:

Strange problem. We have cygwin setup on one of our windows servers for ssh.
ssh works just fine with keyboard-interactive authentication, but for the
purpose of an automated script I need to have publickkey authentication.
Whenever the public key is in the cygwin user's .ssh/authorized_keys file
ssh authenticates just fine, but immediately recieves EOF (line 8 of output
snippet):

A couple of questions/things to check:

1) Are you making a connection _to_ the Cygwin box or _from_ the Cygwin box?

2) If you are making a connection _from_ the cygwin box, make sure you either have a symbolic link named "identity" that points to your RSA or DSA key, or make sure your key is named "id_rsa" or "id_dsa" and that the key with the .pub extension is in the .authorized_keys file of the host you are connecting to. If you are connecting _to_ the cygwin box, the key of your cygwin box should not be in the authorized_keys file of your cygwin box and the key from the box you are connecting from should. The same hints apply (about the names of the key files, etc.)

3) Make sure your authorized_keys file has permissions of 600

4) If you are connecting _from_ the cygwin box, make sure your script is connecting as the appropriate user (If you are running the script as a service, it will most likely not connect as the user you normally use).

5) Make sure your environment knows where your home directory really is (sometimes it picks the wrong place as your home directory, particularly if you are a member of a Windows domain).

Just a few things to check that I have run into with SSH under Cygwin.

Grant


____________________
BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to