简体   繁体   中英

remote connection using powershell from linux to windows

I am able to connect to a remote windows machine from my windows local machine using Powershell session created by New-PSSession command.

New-PSSession -ComputerName $computerName -Credential $cred

Now, I need to create similar remote session to a remote windows machine from my local LINUX machine. So, I installed powershell 6.0.2 on my red hat 7 linux box. When trying to create a remote session using New-PSSession command, I am getting following error:

New-PSSession: MI_Result_Access_Denied

I need to use only WinRM based approach and not SSH based as I cannot install any extra utility on remote windows machines.

kerberos auth is not supported in cross domain in its vanilla flavour. and Basic auth over HTTP is not supported from Linux. Installing OpenSSH on windows looks to be only way.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM