I have do authentication to a Windows VM , pass file over, and invoke a command. Now, I am trying to do the same on a linux VM (CentOS). With Windows, I use this in the past for Windows OS
$DCLocalUser = "$strVMName\$username"
$DCLocalPWord = ConvertTo-SecureString -String '$password' -AsPlainText -Force
$DCLocalCredential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $DCLocalUser, $DCLocalPWord
What commandLet / syntax do I use for Linux?
Any input would be much appreciated