X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 934CA385840F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1707341290; bh=M5f0nom8jNb70+dZ6HbehE9vJ+iLMOE2QUdkbBI1j+U=; 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=FDY+07pbkZI2dnzoOaK3SpzF3MsaDKNIqy/h/vnxB96Fqi4IEwS/Ku0CbtqQPYMUA anmMQdnRDB36j6r7DPOuVG9sCAF3AuWHXlNOrx/500Nd7LZnUZHj0TBKh/naelvrQ6 vXAveizYAMarJFy3hfFIYzRcIaIbRjlOr+2UuImI= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C9C723858C5F ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C9C723858C5F ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707341236; cv=none; b=Xmq6YGynIUwcSOhSBaqzDN/lMYNTDOWRW0dTVelDfE7EMHu8t1/pKfXvROfQFojYG72HA2jm4lOCnUU8KMWYGk4Ack9XvYcSwRnipLFiUlSsX+beT5J0Qy5ngFDVW92NZqOvTc5IjeKJRf+GP3opYzgC0zEjc8BYlGmsb/2m7F0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707341236; c=relaxed/simple; bh=vg0QIj0xzUrX0qjn8KgnNyTeoUzWpmGBhNICsmnR8+0=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=ANsmEr/YFsfiR0VTQUzFpvLQ0CaUZu+2nJGFZrrXiiP2r8R6BrrJbbRo7Rp5+cO8t1f6SuPgdrjhY6Zq8e26u0ogMr47toSq7ed/PJ1vFCblKUq+HGiz03D9SfXgU0tKQTPzb5c6oJ1srnpmmTqQ/rHyCYETYFb813ndd923rkk= ARC-Authentication-Results: i=1; server2.sourceware.org X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Message-ID: <451dd3c1-16f4-4d6b-bc9e-fa02307948f3@gmx.net> Date: Wed, 7 Feb 2024 22:27:13 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: cygsshd fails due to bad ownership or modes of /cygdrive/c/Users Content-Language: en-US To: cygwin AT cygwin DOT com References: <87eddodqox DOT fsf AT Gerda DOT invalid> In-Reply-To: X-Provags-ID: V03:K1:U4tnVjtsvNWpMcOf1hDNRRXsEQsVnLzg4T0fHoRMU3iPk7rLJ6A HRuE64m4l+DJy5lHq7ru1xTdtPaYxM0/SW6t1+T1z2IMHruGoNj6rDgfbx54945WUfoIDYb w2vzH0IutK58gis1ra3OPh9SaKmGh5QzrGJ0IRRqyilLGQCbDVNCVvvuVoqrpYoDaFqMjPv mU3ogIRvS/P/pjEc3/pjg== UI-OutboundReport: notjunk:1;M01:P0:Jjq6xxIZjZI=;blY9iZgGAdYGAU6Rs8YqmDkesG9 o2et01QKPFsj2D0IZ7QEcUAoaHb4eUhN5SaL478macfbD6mQLYuhqiSFBi1a1nI/Ej18tpqC+ GRb6k19CLaKMCl4YrYSn5BFE/QW08RfLoV4JkX3G1XSQgzqC8s4ciubqnWwQFu3PwaTYiK88h LHh1Ta3nOGm7h3qQySAmfEFfY3Cz6AMmSK9cZOB7rDELOqkMy7p7xiGDN/sx/smzhEErmvbqZ XmucBmHapiGqHhKA74J6OvufoMFQ215uU8amNDuC2Sw25virXX/3PQxTZ9ir4zg5MgHakNb1W uBHTkNIp9N/jdQ5Wx4GbBPNcPT4UnKxUJHxI9RtPbBRUAkrxkVE7IZbYWgh6IUId4txNA0Eba I+lQiHRyzD4Vs3dr95TO+cnRsAIXyyYNw8TB+EwULg/FXkGdPIouROvLAJyTjjXzzx1feTjFf M39VVlOSy95LJc3kqE6HysZXE5JeebP72Zac/WW3kai0LSvTRBYd567JRn9ERCLRzStffkET+ fVCKHF71Ew5eI5DmgcZoGpj5zo4e6eS41lZnmn25iIbcy6gPoFRk7sBHXsQ6pVFfkoAXBjwpQ 6eda8OqH0vnbTX0aHRtpmPbbJRf8aeAzA7wYWgVhVEzwPFeODCPlqTiYyj7DPUnyXA2vHUgC1 ulT1h9cte9sLlxGEc/GB2gqWIVK4rR+0GyChuVM77mEJJfwwuEEyJp1jYOFA9l+2nZetBHAIy edAQTzg5jJnF6ClvwFpVfM6W8Kugs/QbuHqn4vRiNw6Zh+uwkAaXQHrm7mPeHn2NuGFiGxep9 Qkzd8WlxOydoyEcsMwSWeQcE7Ljijrca/kCVi47Jtg0QE= X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GB_FREEMAIL_DISPTO, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Frank-Ulrich Sommer via Cygwin Reply-To: Frank-Ulrich Sommer Content-Type: text/plain; charset="utf-8"; Format="flowed" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 417LSCPd004549 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 >>> /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 the .ssh directory (700 and belongs to >>> user xxx) and the authorized_keys file (600 and also belongs to user >>> xxx) and also of the home directory (had to change ownership). >> Just bind mount instead of symlinking .ssh and everything should work. > Assuming you have installed CYgwin under your own account, that's even > better than utilizing "StrictModes" > > > Corinna > Ich decided to move the .ssh directory to /home/username/.ssh and edited nsswitch.conf to specify the home directory with "db_home: /home/%U" (all entries in this file were commented). Now sshd seems to work without deactivating strict mode. If I should still get problems with something else missing the .ssh directory in the WIndows Users directory I will try the bind mount. I do not know how the .ssh got in /cygdrive/c/Users/... because I did not change anything manually. Thanks for all the help! -- 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