Mac通过ssh远程连接wsl
一共有两种方案。
方案1
需求:在Windows上启用ssh-server。
Mac通过ssh连接Windows,直接在Windows的cmd/powershell中输入wsl启动。
方案2
需求:在Windows和wsl中均启用ssh-server。
Mac通过ssh连接Windows,再从Windows通过ssh连接wsl。此时将Windows设置为跳板机,可以直接从Mac通过ssh连接wsl。
一共有两种方案。
需求:在Windows上启用ssh-server。
Mac通过ssh连接Windows,直接在Windows的cmd/powershell中输入wsl启动。
需求:在Windows和wsl中均启用ssh-server。
Mac通过ssh连接Windows,再从Windows通过ssh连接wsl。此时将Windows设置为跳板机,可以直接从Mac通过ssh连接wsl。