delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/10/17/15:32:43

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; q=dns; s=default; b=HuopG8tiDdb1N5MsGEsrjkULrF0h9
fWvQt3QdM7T+JNR4rFOV1NjYYBnzZjUE3+i/9Lwb0MZDYmY+SPRe2BlNHjYEfLww
C7WNrHnJG53SjJlwzI5LGpfW0FN7btNkrsjiOiH7xbjSEjJJwZ71+nL+ijLoctwn
4MKQ+AULO4n0H8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; s=default; bh=x+KzKiFTIvmuXZDW9OdUeHFfngE=; b=wDB
tRpBnYfKNRuFEB2ZhvsjKAy3xI5g7N4Rv8reASttrQcsIQNT1dbr//uVU+KzEfwE
lQrEZ4FKPOJXXLEAyDeTcuu/MIHsXs/dpUY1sYXNFJOkn6tRRmz48K1zns4Ed+GN
Ad/IbEmUmUFAnvyQFHT5OsC10q/dpEhU4eeEjWjM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-4.0 required=5.0 tests=AWL,BAYES_50,GIT_PATCH_2,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=retried, H*r:2002, Hx-languages-length:1049, logon
X-HELO: VSNSBIODMZEDG01.DFO-MPO.GC.CA
From: "Fournier, Danny G" <Danny DOT Fournier AT dfo-mpo DOT gc DOT ca>
To: "Gluszczak, Glenn" <Glenn DOT Gluszczak AT dell DOT com>,
"cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: ERROR: A specified logon session does not exist. It may already have been terminated
Date: Tue, 17 Oct 2017 19:32:25 +0000
Message-ID: <513AA0729B894545B2D793D01FFF8B6D471A0D3B@SVNSBIOMBX01.ENT.dfo-mpo.ca>
References: <513AA0729B894545B2D793D01FFF8B6D4719B909 AT SVNSBIOMBX01 DOT ENT DOT dfo-mpo DOT ca> <91DCAC3CB99C724EB365BB64677FBE7B1EFC1B60 AT MX204CL04 DOT corp DOT emc DOT com> <513AA0729B894545B2D793D01FFF8B6D4719B986 AT SVNSBIOMBX01 DOT ENT DOT dfo-mpo DOT ca> <91DCAC3CB99C724EB365BB64677FBE7B1EFC1B90 AT MX204CL04 DOT corp DOT emc DOT com> <513AA0729B894545B2D793D01FFF8B6D4719BB61 AT SVNSBIOMBX01 DOT ENT DOT dfo-mpo DOT ca> <91DCAC3CB99C724EB365BB64677FBE7B1EFC1C9B AT MX204CL04 DOT corp DOT emc DOT com> <513AA0729B894545B2D793D01FFF8B6D471A0719 AT SVNSBIOMBX01 DOT ENT DOT dfo-mpo DOT ca> <91DCAC3CB99C724EB365BB64677FBE7B1EFC501E AT MX204CL04 DOT corp DOT emc DOT com>
In-Reply-To: <91DCAC3CB99C724EB365BB64677FBE7B1EFC501E@MX204CL04.corp.emc.com>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v9HJWflL001767

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 DOT Gluszczak AT dell DOT 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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019