Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openssh missing authentication features of Microsoft's fork Openssh_for_Windows #20567

Open
1 of 7 tasks
edgecase14 opened this issue Apr 5, 2024 · 1 comment
Open
1 of 7 tasks
Labels

Comments

@edgecase14
Copy link

edgecase14 commented Apr 5, 2024

Description / Steps to reproduce the issue

Microsoft's distribution of OpenSSH for WIndows https://github.com/PowerShell/openssh-portable supports Kerberos GSSAPI logins using the OS's integrated credentials cache. Openssh distributed with msys2 does not, but rather uses Heimdal or MIT Kerberos with a separate credentials cache. Heimdal and MIT Kerberos both had some attempts to use MSLSA credentials cache, but neither has a working implementation. For reference, Postgresql client in msys2 uses Windows SSPI directly (same as MS does with openssh-for-windows) for kerberos, and works out of the box with GSSAPI logins.

Expected behavior

  1. login to windows domain account
    1a) cmd> klist shows KRBTGT for domain
  2. ssh to kerberos-enabled host
  3. shell prompt is reached without password prompt
    3a) cmd> klist now shows service ticket HOST/myhost

Actual behavior

  1. login to windows domain account
  2. ssh to kerberos enabled host
  3. msys2 (heimdal) kinit is required first to get separate KRBTGT for MSYS otherwise passsword is requested
  4. it should be noted also, that by default installing openssh hides the native C:\Windows\SYSTEM32\OpenSSH\ssh.exe in the path. uncommenting MSYS2_PATH_TYPE=inherit or adding to beginning of $PATH in .bashrc is required. Installing git for example pulls in openssh, thus requiring manual configuration to use native windows ssh client.

Verification

Windows Version

MSYS_NT-10.0-19045

MINGW environments affected

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANG32
  • CLANGARM64

Are you willing to submit a PR?

not at this time

@edgecase14 edgecase14 added the bug label Apr 5, 2024
@Biswa96
Copy link
Member

Biswa96 commented Apr 7, 2024

I have tried to compile that openssh project with a custom cmake file (not complete yet). The header files in contrib/win32/win32compat/inc directory conflict with mingw-w64 headers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants