0%

How to make powershell remoting to windows work on linux

Microsoft disabled Basic Auth over HTTP with PSRP on Linux. See here

We have to use Negotiate / Kerberos to remote to windows.

But using WinRM is very very unstable on linux. Microsoft is suggesting to install ssh on windows box.

With official powershell docker image

docker run -it --rm mcr.microsoft.com/powershell

We have to run apt-get update && apt-get install netbase to make it work. The related issue is here

The microsoft/powershell image is based on Ubuntu, which does not bundle /etc/services, so you are likely being bit by this issue: microsoft/omi#623.

Known dependencies on linux

Many issues targets to . It has some documents about setting up ntlm and kerberos.

The mentioned special packages are krb5 and gss-ntlmssp.

I am not quite sure about this part yet. Just record here for now.