Skip to content

Commit dda0ff7

Browse files
SteveL-MSFTsdwheeler
authored andcommitted
add note about -skipcacheck and -skipcncheck for non-Windows (#4071)
1 parent b54dc28 commit dda0ff7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

reference/6/Microsoft.PowerShell.Core/New-PSSession.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ The benefit of an SSH based PowerShell remote session is that it can work across
9292
For SSH based sessions you use the **HostName** or **SSHConnection** parameter set to specify the remote computer and relevant connection information.
9393
For more information about how to set up PowerShell SSH remoting, see [PowerShell Remoting Over SSH](/powershell/scripting/core-powershell/ssh-remoting-in-powershell-core).
9494

95+
> [!NOTE]
96+
> When using WSMan remoting from a Linux or macOS client with a HTTPS endpoint where
97+
> the server certificate is not trusted (e.g., a self-signed certificate). You must
98+
> provide a `PSSessionOption` that includes `-SkipCACheck` and `-SkipCNCheck` to
99+
> successfully establish the connection. Only do this if you are in an environment
100+
> where you can be certain of the server certificate and the network connection to
101+
> the target system.
102+
95103
## EXAMPLES
96104

97105
### Example 1: Create a session on the local computer

0 commit comments

Comments
 (0)