MacBook Pro M2 Max: Process to SSH from MacOS (iTerm) to Windows 11 VM on Parallels

Discussion in 'Parallels Desktop on a Mac with Apple silicon' started by IanL11, Jun 25, 2023.

  1. IanL11

    IanL11 Bit poster

    MacBook Pro:
    Apple M2 Max
    32 GB Memory
    Ventura 13.0 (22A8380)

    Parallels Desktop For Mac: Version 18.3.1 (53614)

    Instructions to re-create Issue:
    - On Mac, build a fresh Windows 11 VM in Parallels Desktop
    - After installation is complete and Windows 11 opens, go to settings snd search Password, and set a password for your user.
    - Restart Windows 11
    - Login prompt should accept the password you just made
    - Login
    - Open Powershell as administrator
    - Paste all of these commands

    Get-WindowsCapability -Online | ? Name -like 'OpenSSH*'
    Add-WindowsCapability -Online -Name OpenSSH.Client~~~~
    Add-WindowsCapability -Online -Name OpenSSH.Server~~~~
    Get-WindowsCapability -Online | ? Name -like 'OpenSSH*'
    Start-Service sshd
    Set-Service -Name sshd -StartupType 'Automatic'
    netstat -nao | find /i '":22"'
    Get-NetFirewallRule -Name *OpenSSH-Server* |select Name, DisplayName, Description, Enabled
    New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PropertyType String -Force
    if (!(Get-NetFirewallRule -Name "OpenSSH-Server-In-TCP" -ErrorAction SilentlyContinue | Select-Object Name, Enabled)) else

    - Exit Powershell
    - Open PowerShell NOT as administrator
    - Run the following commands

    Get-NetIPAddress | Format-Table
    ssh <user name>@localhost

    - your password should work to ssh into your own machine through localhost.
    - Exit
    - Run commands again to get IP address
    Get-NetIPAddress | Format-Table

    - Open terminal on your MacOS

    use ssh <username>@<IP address from the windows IP command from above>

    This procedure works perfectly on my MacBookPro Intel Processor with Parallels Desktop for Mac (Intel)

    On MacBook Pro M2 the terminal command hangs until the timeout after 120 seconds.

Share This Page