要實現(xiàn)Windows 免密 SSH 訪問 WSL2,本質(zhì)上是配置SSH 公鑰認證,步驟如下: 1. 在 Windows 上生成 SSH 密鑰對 在PowerShell或Git Bash中運行: 1 ssh-keygen -t ed25519 -C"wsl-ssh-key"# 推薦使用 ed25519 算法 默認保存路徑:C:\Users\你的用戶名\.ssh\id_ed25519(私鑰)和id_ed25519.pub(公鑰)。
www.dbjr.com.cn/server/342588c...htm 2025-6-9