delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/12/18/14:32:26

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4BIJWPKf574689
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 4BIJWPKf574689
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=P4BMV4LY
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C3B463858D39
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1734550343;
bh=yQ+zc4MwJ/LP9HVy0snAH5unuhWw9C587o9rGaNJuQ0=;
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=P4BMV4LYm5sMaFmYJV6lMtwq0OH60P7sCRYrDUcUCGwr5t1b3pTqZF8ys07tTZY9A
jtPqqBX8zBruLDSBusOwHXLBW8MQ7pbvyMyp6EdH0swdBMcnhbFKDiWCQX51NCX9zG
vLke0cEkRpDBe+UtBMHZ3e5o0aXpDkAjy1DOe4Jk=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C9DB43858D38
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C9DB43858D38
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1734550254; cv=none;
b=TJC/8OGvPOF3LI5d4KmuKE+TIBUPYa0whSGho/a8HNvsp9lQFgrEgaTlx7J83RW9/3R1/yrQZf6sZPlYXBGYQsQ88GQ+99B6vMOa/Nzm72aSvpKmwgVUaG8GVnA4nDheEMAyAnGRaF2BJchJwbrV+LxQgo6WpmCoiNzeuMhisRU=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1734550254; c=relaxed/simple;
bh=ch9IgSV8b52m2nZ9QLYbSzrIz+zSe1Nah4hWhV1fFDw=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:From:To;
b=rJKwFyYs9YFakA56PwwZTcO4ZDXTvr3fGIxeQ5QjH3v+W4rOoZZCKqkVVhFHMRQr7FDv9S9ulsmWCqS38PYGKgiFNder9U3qd6uBLibWyNOxpQOZNuL5JQnwg3BEz5KTBfg5KhssPt+1xOWMA9zLwO+oW37xtN92+KZxkJ9f5Wc=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C9DB43858D38
Message-ID: <a1fc3f55-571c-4a1a-9e83-ae1848f03191@kircheis.it>
Date: Wed, 18 Dec 2024 20:30:49 +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>
In-Reply-To: <06f56012-2124-4df1-bc4f-5fb695524872@kircheis.it>
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>

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
~~~~



-- 
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