*sigh* some clarifications * Grant Robinson [Wed, 8 Sep 2004 at 13:07 -0600] > > On Sep 8, 2004, at 12:35 PM, Von Fugal wrote: > > A couple of questions/things to check: > > 1) Are you making a connection _to_ the Cygwin box or _from_ the Cygwin > box?
Connecting _to_ 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.) The keys are setup properly, local box's .ssh/id_rsa.pub is in Cygwin's .ssh/authorized_keys > 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). 3-4 It works just fine as far as authentication. The problem is, once it authenticates successfully and start the interactive session, the program receives eof from who-knows-where. No error, no nothing, it's equivalent to if you ssh'ed into a box and pressed ctr-d, except that it seems to receive the eof and quit before the login or bashrc scripts are even sourced. > 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). It works perfectly with interactive auth, which tells me it's not an env problem. My hunch is it's a bug in cygwin's ssh that sends an extra eof in the publickey auth method or something like that.
pgp2GM6g4IGcO.pgp
Description: PGP signature
____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
