I have Kubuntu 18.04 installed on my machine and I installed PowerShell Core following the instructions given: Installing PowerShell core in linux.
I then setup the remoting following the steps described here: PowerShell remoting over SSH.
Even though the steps target Ubuntu 14.04, I could make my way through them.
But when I am trying something as simple as executing something on my own machine through remoting I get:
PS /etc/ssh> Invoke-Command -ComputerName ehouarn-perret-ThinkPad-E460 -ScriptBlock { Write-Output Hello }
Invoke-Command : MI_RESULT_ACCESS_DENIED
At line:1 char:1
+ Invoke-Command -ComputerName ehouarn-perret-ThinkPad-E460 -ScriptBloc ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Invoke-Command], PSInvalidOperationException
+ FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.InvokeCommandCommand
Any idea how to make the PowerShell Core remoting work with Ubuntu?
[-HostName <string>] [-UserName <string>]
– LotPings Aug 04 '18 at 11:00