You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: reference/6/Microsoft.PowerShell.Core/New-PSSession.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,6 +92,14 @@ The benefit of an SSH based PowerShell remote session is that it can work across
92
92
For SSH based sessions you use the **HostName** or **SSHConnection** parameter set to specify the remote computer and relevant connection information.
93
93
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).
94
94
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
+
95
103
## EXAMPLES
96
104
97
105
### Example 1: Create a session on the local computer
0 commit comments