Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

Remote Powershell for Linux VM

$
0
0

Hi All,

I wrote a script to create a Linux VM(Ubuntu) in azure. That script also includes to install some software in the VM once it starts. These two are automated in Powershell. I used some SSH.Net libraries to take the remote session using New-Sshsession and Invoke-SshCommand to execute the commands.

But while installing getting the problem with root password. I could not able to pass the password and if i want to pass the password i need to include it for each command that i want to execute as sudo. For Windows VM it is working fine, but for Linux VMs getting problems to install the software as sudo.

Please provide any solution

Thanks,

Bhaskar.


Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>