win挂载liunx目录
服务器能 SSH 登录时,在 Windows 上把远程目录映射成盘符。
步骤:
安装 WinFsp (https://winfsp.dev/rel/)
安装 SSHFS-Win(或商店版 WinFsp SSHFS)
资源管理器地址栏输入,或命令行:
映射为 Z: 盘(按你的用户、IP、路径改)
先确认 SSH 本身能登录
在 CMD 里:
sshroot@10.0.0.222推荐:先配密钥,再映射(最稳)
在 Windows:
ssh-keygen-ted25519type%USERPROFILE%\.ssh\id_ed25519.pub把公钥加到服务器 root 的 ~/.ssh/authorized_keys(或让管理员加)。
测试无密码登录:
sshroot@10.0.0.222能直接进再去映射:
net use Z:\\sshfs.r\root@10.0.0.222\home\websoft_v5