百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
W

wslbridge

> 编程语言
开源

从 Cygwin 到 WSL pty/pipe I/O 的桥接

353 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

从 Cygwin 到 WSL pty/pipe I/O 的桥接

wslbridge

wslbridge is a Cygwin program that allows connecting to the WSL command-line environment over TCP sockets, as with ssh, but without the overhead of configuring an SSH server.

Building wslbridge

You'll need a Cygwin (32 or 64 bit) environment, as well as a WSL environment (or any other Linux environment). Make sure you have the g++ and make packages installed.

In Cygwin:

$ cd frontend
make

In WSL/Linux:

$ cd backend
make

The Cygwin frontend program is written to out/wslbridge.exe. The ELF64 backend program is written to out/wslbridge-backend. The files can be copied somewhere more convenient, but they need to be on a letter drive (e.g. not a \\server\share\... UNC path). They also need to be on an NTFS volume. The frontend looks for the backend in its own directory.

Usage

Usage is similar to that of ssh. Run wslbridge with no arguments to start a bash session in a WSL pty. Append a command-line to run that command in WSL without a pty (i.e. using 3 pipes for stdio).

wslbridge runs its WSL command with either a pty or using pipes. Pass -t to enable pty mode or -T to enable pipe mode. Pass -t -t to force pty mode even if stdin is not a terminal.

Pass -eVAR=VAL to set an environment variable within WSL. Pass just -eVAR to copy the value from the Cygwin environment.

wsltty (mintty/wslbridge package)

The mintty project provides wsltty, a standalone WSL terminal package containing mintty, wslbridge, and part of Cygwin (e.g. the runtime library).

Copyright

This project is distributed under the MIT license (see the LICENSE file in the project root).

By submitting a pull request for this project, you agree to license your contribution under the MIT license to this project.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言