SshPrivateKeyPassphrase and ConvertTo-SecureString
When using with a text based passphrase the powershell script works fine.
If i try to use it with:
I get an error:
Connection has been unexpectedly closed. Server sent command exit status 0.
SshPrivateKeyPassphrase
If i try to use it with:
$sessionOptions.SshPrivateKeyPassphrase = ConvertTo-SecureString
I get an error:
Connection has been unexpectedly closed. Server sent command exit status 0.