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~~~~0.0.1.0
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
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
```
whoami
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.
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~~~~0.0.1.0
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
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
```
whoami
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.