delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/12/18/15:38:35

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4BIKcYlg600473
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4BIKcYlg600473
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=BHvIZqkw
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E04D3858CDA
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1734554313;
bh=CD4OhuxhJ3A0LDGvgBOKP5zMom6DC3jcLqO0pgqXrIw=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=BHvIZqkwJfbY9KlRMRJ2JGmeFcwgagGiSWk8/LpxWAyXZXGeuiZoA6WSK+wUtM6cU
B04ITfow6R/IC75sh4xeqIjZFjQQ9p7RZ/Hz+00XmVF67x0GUkekwYr0a48hvV6NiM
JW5NGSrt2vkG9x/1KvcibdEwVpzr60fgKoYaEF9M=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B887B3858D20
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B887B3858D20
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734554245; cv=none;
b=GOKCtJFuszeSsV8OItVcU+rgj/3Et/oU2VlfqdzWHpLHyKydOQGFDfRzZGvMvBHOlY5GHp+l0GyoGvAd8TjJYSX57Asu0zcDvM7s4DGPG3fRuF/WNjeFb6qtecSawWxtQcf6aQigEc9Qmlru+wOs/1DMmM5IJYq48eUvHQR3vwc=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1734554245; c=relaxed/simple;
bh=DbH15S5xfWw86KsZXGp5pyN8mz1BYeZR05g/5o60eQw=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;
b=T3SpHBIjzSgwAjmhGZ/v0ghuCvUf6mC4+un0O4RaM6jCcWMY9hrmlYCkvobv9m52vNIF1E7QCNBJNJNyZZ+5aW7rK52xg2hxg3aW7KbwPE4tUse40fAydfY9Hbvly2Jal6tn8UK+DnK+B+zJd+JzD1gCJoDWYn5jW5VRv1LE/fU=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B887B3858D20
Message-ID: <27824a22-d87b-4502-ae87-765ff0ba1bae@kircheis.it>
Date: Wed, 18 Dec 2024 21:37:20 +0100
MIME-Version: 1.0
Subject: Re: cygport upload seems to ignore SSH_KEY
To: cygwin AT cygwin DOT com
References: <8d85bde3-8ea8-4635-8547-9846315243cf AT kircheis DOT it>
<7704ca4f-00ba-41b8-897c-7558d846ec18 AT SystematicSW DOT ab DOT ca>
<nlvjij9vha7u1j71seri65tfg21o7ua3im AT 4ax DOT com>
<1fe1c4ea-83bd-4fe8-9daf-496ff6ec2c69 AT SystematicSW DOT ab DOT ca>
<6d211145-71a2-47d5-83ac-e7a3330e30ce AT kircheis DOT it>
<87ses58u8k DOT fsf AT Gerda DOT invalid>
<06f56012-2124-4df1-bc4f-5fb695524872 AT kircheis DOT it>
<a1fc3f55-571c-4a1a-9e83-ae1848f03191 AT kircheis DOT it>
<50cd7675-6af4-cb84-4cc4-dd0d91956d26 AT cs DOT umass DOT edu>
In-Reply-To: <50cd7675-6af4-cb84-4cc4-dd0d91956d26@cs.umass.edu>
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Federico Kircheis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Federico Kircheis <federico AT kircheis DOT it>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 4BIKcYlg600473

On 18/12/2024 20.38, Eliot Moss wrote:
> On 12/18/2024 2:30 PM, Federico Kircheis via Cygwin wrote:
>> On 05/11/2024 18.31, Federico Kircheis wrote:
>>> On 05/11/2024 18.29, ASSI via Cygwin wrote:
>>>> Federico Kircheis via Cygwin writes:
>>>>> I also did a chmod/chown on the file to ensure that the permission
>>>>> where correct.
>>>>> The file with the permission unchanged worked without issues when
>>>>> moved in ~/.ssh.
>>>>
>>>> Whatever directory that file resides in must be readable only by the
>>>> owner or SSH will not use it.
>>>>
>>>>
>>>> Regard,
>>>> Achim.
>>>
>>> Mhm, that could be it.
>>> I did not try to modify the permission of the directory.
>>
>>
>> Nope.
>>
>> Directory has permission 0700, file has permission 0600, just to be 
>> sure I've execute chmod on both.
>> I can access they key but I still experienced the issue
>>
>> ~~~~
>> $ ls -la $SSH_KEY
>> -rw-------+ 1 Administrators None 3357 Dec 20  2019 /cygdrive/c/ 
>> cygport-ps/ssh/id_rsa_cyg
>>
>> $ ls -la /cygdrive/c/cygport-ps/ssh/
>> total 13
>> drws--S---+ 1 Administrators None    0 Jan 14  2023 .
>> drwxrwx---+ 1 Administrators None    0 Dec 18 10:55 ..
>> -rw-------+ 1 Administrators None 3357 Dec 20  2019 id_rsa_cyg
>> -rw-------+ 1 Administrators None  745 Jul 25  2018 id_rsa_cyg.pub
>> -rw-------+ 1 Administrators None  236 Mar 18  2020 known_hosts
>> ~~~~
>>
>> If I manually execute lftp
>>
>>
>> ~~~~
>> $ lftp sftp://cygwin:@cygwin.com
>> lftp cygwin AT cygwin DOT com:~> cd .
>> cd `.' [Connecting...]
>> ~~~~
>>
>> and hangs.
>>
>> I'm not sure how to debug the issue further, and the relation between 
>> all tools.
>>
>> ~~~~
>> $ sftp sftp://cygwin:@cygwin.com
>> cygwin:@cygwin.com: Permission denied (publickey).
>> Connection closed
>> ~~~~
>>
>> I guess lftp/sftp does not support the variable SSH_KEY, as I get the 
>> same "Permission denied (publickey)." error with "ssh -v sftp:// 
>> cygwin:@cygwin.com", and I see that there is no attempt to use my ssh key
>>
>> Also following command does not report an error:
>>
>> ~~~~
>> sftp -i $SSH_KEY sftp://cygwin:@cygwin.com
>> Connection closed by 8.43.85.97 port 22
>> Connection closed
>> ~~~~
> 
> Curious.  I'm not an expert, but I tend to put info in my ssh config 
> file.  Does that help here?
> 
> And, probably grasping at straws, are you sure SSH_KEY is exported :-) ?
> 
> Some people who are more expert might have better suggestions ... Eliot 
> Moss
> 

Yes, I'm sure it is exported, and currently even copying the file in 
.ssh does not work, which did work last time (I get the exact same 
behavior), thus ATM I'm unable to push an update.

Maybe an issue server-side?

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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