Let's walk through the following steps to enable PowerShell remoting using OpenSSH:
- SSH into the Ubuntu machine:
PS> ssh prashanth@40.117.213.80
- Register and download the PowerShell package repository:
# Import the public repository GPG keys$ curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -# Register the Microsoft Ubuntu repository$ sudo curl -o /etc/apt/sources.list.d/microsoft.list https://packages.microsoft.com/config/ubuntu/18.04/prod.list# Update the list of products$ sudo apt-get update
- Install PowerShell: