Windows 10: Enable PowerShell SSH Remoting in PowerShell 7

Discus and support Enable PowerShell SSH Remoting in PowerShell 7 in Windows 10 Ask Insider to solve the problem; [ATTACH] submitted by /u/ThomasMaurerCH [link] [comments]... Discussion in 'Windows 10 Ask Insider' started by /u/ThomasMaurerCH, Apr 7, 2020.

  1. Enable PowerShell SSH Remoting in PowerShell 7

    /u/ThomasMaurerCH, Apr 7, 2020
    #1
  2. Testman42 Win User

    SSH into PowerShell

    So Microsoft does provide
    SSH server
    as a part of Windows 10, but that uses cmd.exe as a default shell for everyone who connects to it.

    I would like to use PowerShell as a shell to be used as my default shell.

    When I type "powershell" and press enter, it does appear that command was executed successfuly, but I do not actually end up in PowerShell but instead I am still in cmd.exe. So I presume that the successfully executed command means that actual powershell
    window opened on the Windows machine that I am SSHed into. This is not what I want.

    Is there any way to start PowerShell from SSH session using cmd.exe as a shell or maybe even setting PowerShell as default shell?

    I mean, even more than that I would prefer BASH from "Linux subsystem for Windows" to be used, but starting that when SSHed into WIndows causes the remote connection to become completely unresponsive. I do get moved into BASH, but any input that I make does
    not get registered. All I can do is kill the session and establish new one.
     
    Testman42, Apr 7, 2020
    #2
  3. SarahKong Win User
    Remote desktop client: SSH tunnel

    Hi Thanatica... Do you mean use Powershell over SSH? I use this myself all the time to connect to my remote servers.

    See link.

    To set it up you will need to enable windows remote management on both ends.

    Make sure in services.msc the windows remote management service is running. Also in windows firewall make sure port 5986 is enabled.

    https://docs.microsoft.com/en-us/powershell/scr...

    If the machines you are trying to connect to are on a different domain\subnet you will need to add them to your trusted host list.

    See link.

    https://docs.microsoft.com/en-us/previous-versi...(v=msdn.10)
     
    SarahKong, Apr 7, 2020
    #3
  4. Nobody99 Win User

    Enable PowerShell SSH Remoting in PowerShell 7

    Nobody99, Apr 7, 2020
    #4
Thema:

Enable PowerShell SSH Remoting in PowerShell 7

Loading...
  1. Enable PowerShell SSH Remoting in PowerShell 7 - Similar Threads - Enable PowerShell SSH

  2. Removing powershell 7

    in Windows 10 Gaming
    Removing powershell 7: I want to remove powershell 7 which I installed on my systemThis message has been automatically translated https://answers.microsoft.com/en-us/windows/forum/all/removing-powershell-7/ab1f7207-9720-4eeb-a6db-4d1949f2a555
  3. Powershell 7 !

    in Microsoft Windows 10 Store
    Powershell 7 !: Hi, when I use things like SCANNOW I now use Powershell instead of Command prompt. I keep seeing the message "try new cross-platform Powershell 6 ! I have looked in the Microsoft store and and "7" is listed is this the latest ? I guess the next question is "should I download...
  4. Powershell 7 !

    in Windows 10 Gaming
    Powershell 7 !: Hi, when I use things like SCANNOW I now use Powershell instead of Command prompt. I keep seeing the message "try new cross-platform Powershell 6 ! I have looked in the Microsoft store and and "7" is listed is this the latest ? I guess the next question is "should I download...
  5. Powershell 7 !

    in Windows 10 Software and Apps
    Powershell 7 !: Hi, when I use things like SCANNOW I now use Powershell instead of Command prompt. I keep seeing the message "try new cross-platform Powershell 6 ! I have looked in the Microsoft store and and "7" is listed is this the latest ? I guess the next question is "should I download...
  6. PowerShell 7 compatibility with PowerShell 5

    in Windows 10 Gaming
    PowerShell 7 compatibility with PowerShell 5: Hi just like to ask if a ps1 script written in PowerShell 7 can be used in PowerShell 5 without any issues? https://answers.microsoft.com/en-us/windows/forum/all/powershell-7-compatibility-with-powershell-5/cb95ea7c-070c-4f1f-8d48-6f68d95c2cb1
  7. PowerShell 7 compatibility with PowerShell 5

    in Windows 10 Software and Apps
    PowerShell 7 compatibility with PowerShell 5: Hi just like to ask if a ps1 script written in PowerShell 7 can be used in PowerShell 5 without any issues? https://answers.microsoft.com/en-us/windows/forum/all/powershell-7-compatibility-with-powershell-5/cb95ea7c-070c-4f1f-8d48-6f68d95c2cb1
  8. PowerShell 7 compatibility with PowerShell 5

    in Windows 10 Customization
    PowerShell 7 compatibility with PowerShell 5: Hi just like to ask if a ps1 script written in PowerShell 7 can be used in PowerShell 5 without any issues? https://answers.microsoft.com/en-us/windows/forum/all/powershell-7-compatibility-with-powershell-5/cb95ea7c-070c-4f1f-8d48-6f68d95c2cb1
  9. Enable Remote Desktop using Command Prompt or PowerShell

    in Windows 10 News
    Enable Remote Desktop using Command Prompt or PowerShell: [ATTACH] [ATTACH]If you want to use the Remote Desktop feature without opening the Windows Settings panel, then you can enable Remote Desktop using Command Prompt or Windows PowerShell. If you have a remote desktop client on your mobile or another computer, [...] This post...
  10. The Next Release of PowerShell - PowerShell 7

    in Windows 10 News
    The Next Release of PowerShell - PowerShell 7: Recently, the PowerShell Team shipped the Generally Available (GA) release of PowerShell Core 6.2. Since that release, we’ve already begun work on the next iteration! We’re calling the next release PowerShell 7, the reasons for which will be explained in this blog post. Why...