Microsoft provides instructions for installing PowerShell on Linux; these should be followed before attempting to configure remoting: Get-Content /etc/shells # Use cat or less in Bash
The native chsh (change shell) command can be used to change the default shell for the current user, as shown in the following example: To configure remoting using WSMan, the OMI and PSRP packages must be installed. The following example uses yum since the operating system in use is CentOS 7: By default, CentOS has a firewall...chsh -s /usr/bin/pwsh
yum install omi.x86_64 omi-psrp-server.x86_64
United States
Great Britain
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Singapore
Canary Islands
Hungary
Ukraine
Luxembourg
Estonia
Lithuania
South Korea
Turkey
Switzerland
Colombia
Taiwan
Chile
Norway
Ecuador
Indonesia
New Zealand
Cyprus
Denmark
Finland
Poland
Malta
Czechia
Austria
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Netherlands
Bulgaria
Latvia
South Africa
Malaysia
Japan
Slovakia
Philippines
Mexico
Thailand