Would you like to react to this message? Create an account in a few clicks or log in to continue.

powershell on linux to windows

Go down

powershell on linux to windows Empty powershell on linux to windows

Post by sunt Fri Mar 11, 2022 4:22 pm

https://mangolassi.it/topic/21244/remote-powershell-from-fedora-to-windows
https://mangolassi.it/topic/21244/remote-powershell-from-fedora-to-windows


Normally you would type the following in Windows and you all good.
Enter-PSSession -ComputerName dns-or-ip -Credential username


But that doesn't work with Fedora. You'll end up getting a MI_RESULT_ACCESS_DENIED error message.

Enter-PSSession : MI_RESULT_ACCESS_DENIED
The solution is to use -Authentication Negotiate
Enter-PSSession -ComputerName dns-or-ip -Authentication Negotiate -Credential username

But wait, you thought that was it, now you'll see a Unspecified GSS failure error message.

Enter-PSSession: Connecting to remote server failed with the following error message : acquiring creds with username only failed Unspecified GSS failure.  Minor code may provide more information SPNEGO cannot find mechanisms to negotiate For more information, see the about_Remote_Troubleshooting Help topic.
The solution is to install gssntlmssp package.
sudo dnf install gssntlmssp
6c1e3d44-be83-425d-9dbf-6ba18a178d33-image.png

After all of that, now can remote powershell into your Windows hosts.
Enter-PSSession -ComputerName dns-or-ip -Authentication Negotiate -Credential username



to install "gss-ntlmssp"
sudo apt-get update -y
sudo apt-get install -y gss-ntlmssp
Enter-PSSession -ComputerName dns-or-ip -Authentication Negotiate -Credential username


sunt
sunt

Number of posts : 145
Registration date : 2008-11-14

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum