I did not add the password to the registry (not knowingly in any case). When we initially setup, we logged in by providing the password and used ssh-copy-id to setup the key.
-----Original Message----- From: Gluszczak, Glenn [mailto:glenn.gluszc...@dell.com] Sent: October-17-17 5:11 PM To: Fournier, Danny G Subject: RE: ERROR: A specified logon session does not exist. It may already have been terminated Good detective work. I need to think about why key only authentication would cause an impact. Did you add the password to the registry? (Log in as the user and the run "passwd -R"). To get proper identity from a filesystem basis, a process still needs to log in. SSH uses a behind the scene login if it finds the password. If you log in directly, it doesn't need to access the registry one. Glenn -----Original Message----- From: Fournier, Danny G [mailto:danny.fourn...@dfo-mpo.gc.ca] Sent: Tuesday, October 17, 2017 3:32 PM To: Gluszczak, Glenn; cygwin@cygwin.com Subject: RE: ERROR: A specified logon session does not exist. It may already have been terminated Here's what I just did: 1. created new local administrator account 2. ran mkpasswd -l > /etc/passwd 3. removed all instances of server name in /etc/passwd (ie. MYSERVERNAME+) 4. remotely connected successfully 5. successfully ran schtasks, it listed all jobs configured I just retried with the other user, where I connect specifying a shared key and got the error message. For good measure, I changed the password on the problematic user, connected directly without the key and provided the password. I then ran schtasks and it ran fine. It listed all the jobs configured. It would seem that our issue is related to connecting over SSH using a shared key. -----Original Message----- From: Gluszczak, Glenn [mailto:glenn.gluszc...@dell.com] Sent: October-17-17 11:08 AM To: Fournier, Danny G Subject: RE: ERROR: A specified logon session does not exist. It may already have been terminated Does ssh with Administrator and running schtasks fail as well? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple