Mac通过ssh远程连接wsl

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。

相关推荐
Full Stack Developme6 小时前
JVM 与 Linux 交互的核心原理
linux·运维·jvm
HackTwoHub6 小时前
最新Nessus2026.6.8版本主机漏洞扫描/探测工具Windows/Linux
linux·运维·服务器·安全·web安全·网络安全·安全架构
qq_163135756 小时前
Linux 【04-mkdir命令超详细教程】
linux
qq_163135756 小时前
Linux 【08-mv命令超详细教程】
linux
10086love100107 小时前
Macos安装codex
macos
youngerwang7 小时前
【Windows tcpip协议栈完整静态反汇编分析】
windows·tcpip协议栈·静态反汇编分析
2301_764441338 小时前
主流手机pc品牌的端侧模型部署梳理
人工智能·windows·机器学习·智能手机·产品运营
Java面试题总结8 小时前
C#12 中的 Using Alias
开发语言·windows·c#
qq_163135759 小时前
Linux 【07-rm命令超详细教程】
linux
糖少主9 小时前
WSL中使用Beyond Compare 3/4/5作为difftool
git·wsl·beyond compare·difftool