public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Andrey Repin <anrdaemon@yandex.ru>
To: "Henry S. Thompson" <ht@inf.ed.ac.uk>, cygwin@cygwin.com
Subject: Re: Can't ssh to cygwin after switching sign-in to Windows Hello PIN
Date: Mon, 13 Sep 2021 20:21:13 +0300	[thread overview]
Message-ID: <1545208418.20210913202113@yandex.ru> (raw)
In-Reply-To: <f5bwnnla1qa.fsf@ecclerig.inf.ed.ac.uk>

Greetings, Henry S. Thompson!

> Running cygwin 3.2.0-1 on Windows 10 Pro 21H1

> Since changing my login from local User to Windows Hello PIN, I can't
> ssh in to my machine using a password:  neither the PIN nor my old
> password work:

>   1) If from my machine I do
>           ssh -o PreferredAuthentications=password localhost
>      or
>           ssh -o PreferredAuthentications=password [me]@[host]
>      or
>           ssh -o PreferredAuthentications=password U-[HOST]\\[me]@[host]

>      I get "permission denied".

>   2) If I try any of those from another machine, it hangs (but works
>      w/o the "-o PreferredAuthentications=password", i.e. using a
>      key).  By 'hangs' I mean that having typed the PIN and Enter,
>      nothing happens, including no output if I include -v -v -v.

>      Weirder still, if I try using strace, communication happens and I
>      get "permission denied"

> I have reinstalled openssh, removed the cygsshd service, re-run
> ssh-host-config and restarted the service to no avail.

> I only need password login to install new keys, and obviously there
> are workarounds for that, but if there's just something I'm missing
> I'd like to fix it.

> Are there other things I need to worry about having switched to using
> a PIN?

Did you try to `passwd -R` as explained in
https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-setuid-overview ?


-- 
With best regards,
Andrey Repin
Monday, September 13, 2021 20:17:57

Sorry for my terrible english...


  reply	other threads:[~2021-09-13 17:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-12 22:05 Henry S. Thompson
2021-09-13 17:21 ` Andrey Repin [this message]
2021-09-13 20:01   ` Henry S. Thompson
2021-09-15 17:20 ` Henry S. Thompson
2021-09-15 17:58 ` Brian Inglis
2021-09-15 19:53   ` Henry S. Thompson
2021-09-20  9:59     ` L A Walsh
2021-09-21 10:11       ` Henry S. Thompson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1545208418.20210913202113@yandex.ru \
    --to=anrdaemon@yandex.ru \
    --cc=cygwin@cygwin.com \
    --cc=ht@inf.ed.ac.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).