i am going to check this again .i think i did not pass the right variable which has value zero in it .thats why it took null.
however i am getting below
PS C:\Windows\system32> New-SSHSession -ComputerName vcsa-01a.corp.local -Credential(Get-Credential)
cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
New-SSHSession : Permission denied (keyboard-interactive).
At line:1 char:1
+ New-SSHSession -ComputerName vcsa-01a.corp.local -Credential(Get-Cred ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (Renci.SshNet.SshClient:SshClient) [New-SSHSessio
n], SshAuthenticationException
+ FullyQualifiedErrorId : SSH.NewSshSession
even i cant login to vami with root .