文档:Windows 平台 SSH 远程开发环境配置与排错 SOP

1. 目标与环境

  • 目标: 在一台Windows主机(服务端)上配置OpenSSH服务,允许另一台Windows主机(客户端)通过互联网进行安全的、基于密钥的无密码远程连接,以实现远程开发。
  • 服务端环境:
    • 操作系统: Windows 11
    • 内网IP: 192.168.1.103 (通过DHCP保留实现静态分配)
    • 账户名: yan02
  • 客户端环境:
    • 操作系统: Windows 11
    • 账户名: ptlan
  • 网络环境:
    • 路由器: TP-Link (管理地址 http://192.168.1.1)
    • 公网IP: 124.168.121.187 (示例,可通过该网站查询公网ip)
  • 核心工具:
    • OpenSSH for Windows
    • Visual Studio Code (Remote Development 扩展)
    • Windows PowerShell
Read more »