AuthMode Parameter (Invoke-PowerShellServer Cmdlet)

The type of authentication used by the component.


Invoke-PowerShellServer -AuthMode string


Normally, the cmdlet will attempt to log in to the SSH server and authenticate via username and password. This behavior can be changed to use client key (RSA) authentication by setting this parameter to 'PublicKey'.

PasswordPassword authentication used with the SSH server.
PublicKeyWhen Public Key authentication is used, the cmdlet will search the certificate store specified in CertStore for a private key associated with CertSubject when logging onto the SSH server. This private key is used to verify the client's identity during the user authentication phase of the SSH logon process.
GSSAPIGSSAPI-With-MIC authentication using NTLM.

Default Value


Copyright (c) 2022 /n software inc. - All rights reserved.
NetCmdlets 2020 - Version 20.0 [Build 8165]