Add PSWSMan and document PowerShell remoting to Windows hosts
#32
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #22
Resolves #3
My original comment #22 (comment) turned out to be partially wrong. It seems we can get remoting working quite nicely with Kerberos using only
PSWSMan, which is a very small add.I've written up some documentation which I stuck in a separate readme.
This is in the first commit: 678e584
TODOs:
PSWSManmodule version (at least to major version)For NTLM, I believe we need https://github.com/gssapi/gss-ntlmssp and as far as I can tell there are no pre-built binaries. I was able to get it built from source in al2023, but installing it brings in a lot of other dependencies and adds a few hundred MB to the image size.
As a result, I built is a new image so that it could be used more optionally.
That work is in the second commit: b9cfde3
The thing is, I can't actually get NTLM auth working.
If we try in the original runtime for example (or even the one with
PSWSMan) to use NTLM auth with credentials likeDOMAIN\user, it fails pretty quickly with an error like this:If I use the image above with
gss-ntlmsspinstalled, it just hangs forever, so.. it changed something, but I get no output at all so I'm pretty stuck.We can split this into two PRs, or maybe the community can come up with an answer for the NTLM stuff.
I wonder if @jborean93 might have any ideas? 👀
Let me know what you all think!