I am trying to get RHEL Linux boxes in our environment configured to allow PS remote connectivity, but am falling flat on my face. Out Linux servers are all domain joined, and SSH is configured and working with domain based credentials, but trying to connect via PowerShell is yielding Access is denied
For our test bed, the following has been done (Client: Windows 10, Server: RHEL 8)
- PowerShell 7 is install on both client and server
- OMI is installed on the server
- PSRP is installed on the server
- Port 5986 is allowed to pass through the firewall on the server
$options = New-PSSessionOption -SkipCACheck -SkipRevocationCheck -SkipCNCheck
Enter-PSSession -ComputerName testhost.domain.com -Authentication Kerberos -UseSSL
Enter-PSSession: Connecting to remote server testhost.domain.com failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
We get the same error when trying to configure a credentials variable to pass: $creds = Get-Credential (using user@DOMAIN.COM and the same password) and changing the connection string to use -Credential $creds instead of -Authentication.
Has anyone else struggled like this with domain authentication for PSRemoting from Windows to Linux?