VMware Cloud Community
dwchan
Enthusiast
Enthusiast
Jump to solution

How to authenticate and copy file to a linux guest VM

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 

0 Kudos
1 Solution

Accepted Solutions
dwchan
Enthusiast
Enthusiast
Jump to solution

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

View solution in original post

0 Kudos
1 Reply
dwchan
Enthusiast
Enthusiast
Jump to solution

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

0 Kudos