SSHAuthMode Parameter (Connect-SFTP Cmdlet)
Specifies the SSH authentication method that the provider uses when connecting to the SFTP server.
Syntax
Connect-SFTP -SSHAuthMode string
Possible Values
None, MultiFactor, Password, PublicKeyData Type
cstr
Default Value
"Password"
Remarks
The following values are supported:
- None: No authentication is performed. The 本製品 ignores User and connects as an anonymous user
- MultiFactor: The 本製品 attempts a multistep authentication process using the credential properties you've supplied. It follows the server’s allowed authentication methods in order and continues until authentication succeeds or fails. If any step is rejected, the 本製品 throws an exception.
- Password: The 本製品 authenticates using the values of User and Password.
- PublicKey: The 本製品 authenticates using User and SSHClientCert. The certificate must contain a private key.