PowerShell / Win32-OpenSSH

Win32 port of OpenSSH
7.2k stars 739 forks source link

Bad configuration option: GSSAPIDelegation #2227

Open bvivi57 opened 2 months ago

bvivi57 commented 2 months ago

Prerequisites

Steps to reproduce

Hi, I would like to enable authentication delegation through SSHD in order to use kerberos. The aim is to be able to run powershell commands like get-childitem and Invoke-DbaQuery through ssh.

When I enable the “GSSAPIAuthentication yes” option, I can restart the SSHD deamon without error.

But when I activate the “GSSAPIDelegation yes” option I get the error “Bad configuration option: GSSAPIDelegation”.

My configuration :

Windows Server 2022 21H2 OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2

Expected behavior

Service SSHd Up

Actual behavior

Service SSHd Down

Error details

__PROGRAMDATA__\\ssh/sshd_config: line 59: Bad configuration option: GSSAPIDelegation

Environment data

Name                           Value
----                           -----
PSVersion                      7.4.1
PSEdition                      Core
GitCommitId                    7.4.1
OS                             Microsoft Windows 10.0.20348
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2

Visuals

No response

tgauth commented 2 months ago

GSSAPIDelegation is an argument for ssh_config, not sshd_config. Passing -K as a command-line argument to ssh has the same effect as setting it in ssh_config.