public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* cygsshd fails due to bad ownership or modes of /cygdrive/c/Users
@ 2024-02-04 23:53 Frank-Ulrich Sommer
  2024-02-06  1:28 ` Frank-Ulrich Sommer
  2024-02-07 19:23 ` ASSI
  0 siblings, 2 replies; 12+ messages in thread
From: Frank-Ulrich Sommer @ 2024-02-04 23:53 UTC (permalink / raw)
  To: 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 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).

Now I get the following strange messages:

[...]
Feb  5 00:35:50 XXXXX sshd: PID 2798: debug1: temporarily_use_uid: 197609/197121 (e=18/18)
Feb  5 00:35:50 XXXXX sshd: PID 2798: debug1: trying public key file /home/xxx/.ssh/authorized_keys
Feb  5 00:35:50 XXXXX sshd: PID 2798: debug1: fd 5 clearing O_NONBLOCK
Feb  5 00:35:50 XXXXX sshd: PID 2798: Authentication refused: bad ownership or modes for directory /cygdrive/c/Users
Feb  5 00:35:50 XXXXX sshd: PID 2798: debug1: restore_uid: 18/18
[...]

Why is cygsshd complaining about the Windows "Users" directory and not about the directory of user xxx (/cygdrive/c/Users/xxx)? And how can I solve this?

Frank

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-02-07 21:27 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-04 23:53 cygsshd fails due to bad ownership or modes of /cygdrive/c/Users Frank-Ulrich Sommer
2024-02-06  1:28 ` Frank-Ulrich Sommer
2024-02-06  1:36   ` Eliot Moss
2024-02-06 21:22     ` Brian Inglis
2024-02-07  2:26       ` Frank-Ulrich Sommer
2024-02-07  5:34         ` marco atzeri
2024-02-07 19:01         ` matthew patton
2024-02-07 19:25           ` Corinna Vinschen
2024-02-07 19:23 ` ASSI
2024-02-07 19:27   ` Corinna Vinschen
2024-02-07 19:55     ` Corinna Vinschen
2024-02-07 21:27     ` Frank-Ulrich Sommer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).