Automation

 View Only
Expand all | Collapse all

How to authenticate and copy file to a linux guest VM

  • 1.  How to authenticate and copy file to a linux guest VM

    Posted Nov 17, 2020 03:38 PM

    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 



  • 2.  RE: How to authenticate and copy file to a linux guest VM
    Best Answer

    Posted Nov 17, 2020 03:42 PM

    Never mind, seem like I got it, first try!  LOL.  Thank you again