Re: cygsshd fails due to bad ownership or modes of /cygdrive/c/Users

2024-02-07 Thread Frank-Ulrich Sommer via Cygwin
On 07.02.2024 20:27, Corinna Vinschen via Cygwin wrote: On Feb 7 20:23, ASSI via Cygwin wrote: Frank-Ulrich Sommer via Cygwin writes: I'm trying to run cygsshd on my PC with Windows 11 and connect from a linux machine. I have added the public key to

Re: cygsshd fails due to bad ownership or modes of /cygdrive/c/Users

2024-02-07 Thread Corinna Vinschen via Cygwin
On Feb 7 20:27, Corinna Vinschen via Cygwin wrote: > On Feb 7 20:23, ASSI via Cygwin wrote: > > Frank-Ulrich Sommer via Cygwin writes: > > > I'm trying to run cygsshd on my PC with Windows 11 and connect from a > > > linux machine. I have added the public key to > > >

Re: cygsshd fails due to bad ownership or modes of /cygdrive/c/Users

2024-02-07 Thread Corinna Vinschen via Cygwin
On Feb 7 20:23, ASSI via Cygwin wrote: > Frank-Ulrich Sommer via Cygwin writes: > > I'm trying to run cygsshd on my PC with Windows 11 and connect from a > > linux machine. I have added the public key to > > /cygdrive/c/Users/xxx/.ssh/authorized_keys and created a symbolic link > > from 

Re: cygsshd fails due to bad ownership or modes of /cygdrive/c/Users

2024-02-07 Thread Corinna Vinschen via Cygwin
On Feb 7 19:01, matthew patton via Cygwin wrote: > > The problem seems to be that OpenSSH does not even arrive at checking the > >home diretory> or the .ssh directory. It starts checking every directory in > >the path and fails already at "/cygdrive/c/Users" > I don't think we can win an

Re: cygsshd fails due to bad ownership or modes of /cygdrive/c/Users

2024-02-07 Thread ASSI via Cygwin
Frank-Ulrich Sommer via Cygwin writes: > I'm trying to run cygsshd on my PC with Windows 11 and connect from a > linux machine. I have added the public key to > /cygdrive/c/Users/xxx/.ssh/authorized_keys and created a symbolic link > from  /cygdrive/c/Users/xxx/.ssh to /home/xxx/.ssh. As usual I

Re: cygsshd fails due to bad ownership or modes of /cygdrive/c/Users

2024-02-07 Thread matthew patton via Cygwin
> The problem seems to be that OpenSSH does not even arrive at checking the >home diretory> or the .ssh directory. It starts checking every directory in >the path and fails already at "/cygdrive/c/Users" I don't think we can win an argument with Theo over how misguided and unnecessary meddling

Re: cygsshd fails due to bad ownership or modes of /cygdrive/c/Users

2024-02-06 Thread marco atzeri via Cygwin
On Wed, Feb 7, 2024 at 3:26 AM Frank-Ulrich Sommer via Cygwin wrote: > On 06.02.2024 22:22, Brian Inglis via Cygwin wrote: > > On 2024-02-05 18:36, Eliot Moss via Cygwin wrote: > >> On 2/5/2024 8:28 PM, Frank-Ulrich Sommer via Cygwin wrote: > >>> On 05.02.2024 00:53, Frank-Ulrich Sommer via

Re: cygsshd fails due to bad ownership or modes of /cygdrive/c/Users

2024-02-06 Thread Frank-Ulrich Sommer via Cygwin
On 06.02.2024 22:22, Brian Inglis via Cygwin wrote: On 2024-02-05 18:36, Eliot Moss via Cygwin wrote: On 2/5/2024 8:28 PM, Frank-Ulrich Sommer via Cygwin wrote: On 05.02.2024 00:53, Frank-Ulrich Sommer via Cygwin wrote: I'm trying to run cygsshd on my PC with Windows 11 and connect from a

Re: cygsshd fails due to bad ownership or modes of /cygdrive/c/Users

2024-02-06 Thread Brian Inglis via Cygwin
On 2024-02-05 18:36, Eliot Moss via Cygwin wrote: On 2/5/2024 8:28 PM, Frank-Ulrich Sommer via Cygwin wrote: On 05.02.2024 00:53, Frank-Ulrich Sommer via Cygwin wrote: I'm trying to run cygsshd on my PC with Windows 11 and connect from a linux machine. I have added the public key to

Re: cygsshd fails due to bad ownership or modes of /cygdrive/c/Users

2024-02-05 Thread Eliot Moss via Cygwin
On 2/5/2024 8:28 PM, Frank-Ulrich Sommer via Cygwin wrote: Looking at the OpenSSH source code (on Github, not from Cygwin) I found a function "safe_path" that checks that the ownership and access modes for all path components are correct.  This relies on "platform_sys_dir_uid" which checks if a

Re: cygsshd fails due to bad ownership or modes of /cygdrive/c/Users

2024-02-05 Thread Frank-Ulrich Sommer via Cygwin
Looking at the OpenSSH source code (on Github, not from Cygwin) I found a function "safe_path" that checks that the ownership and access modes for all path components are correct.  This relies on "platform_sys_dir_uid" which checks if a UID may own a system directory. The code checks for UID

cygsshd fails due to bad ownership or modes of /cygdrive/c/Users

2024-02-04 Thread Frank-Ulrich Sommer via Cygwin
Hi, I'm trying to run cygsshd on my PC with Windows 11 and connect from a linux machine. I have added the public key to /cygdrive/c/Users/xxx/.ssh/authorized_keys and created a symbolic link from  /cygdrive/c/Users/xxx/.ssh to /home/xxx/.ssh. As usual I checked the access rights and mode of