V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  LonnyWong  ›  全部回复第 7 页 / 共 29 页
回复总数  573
1 ... 3  4  5  6  7  8  9  10  11  12 ... 29  
@wind1986 #20 我实现了 mosh 的核心功能,不然我也丢不起那脸。
@Configuration #12 mosh 首页说了 3 条(外加 1 条不支持),我实现了前 2 条,第 3 条我不认可(不打算实现),外加实现了 1 条 mosh 不支持的。

It aims to support the typical interactive uses of SSH, plus:

Mosh keeps the session alive if the client goes to sleep and wakes up later, or temporarily loses its Internet connection.

Mosh allows the client and server to "roam" and change IP addresses, while keeping the connection alive. Unlike SSH, Mosh can be used while switching between Wi-Fi networks or from Wi-Fi to cellular data to wired Ethernet.

The Mosh client runs a predictive model of the server's behavior in the background and tries to guess intelligently how each keystroke will affect the screen state. When it is confident in its predictions, it will show them to the user while waiting for confirmation from the server. Most typing and uses of the left- and right-arrow keys can be echoed immediately.

As a result, Mosh is usable on high-latency links, e.g. on a cellular data connection or spotty Wi-Fi. In distinction from previous attempts at local echo modes in other protocols, Mosh works properly with full-screen applications such as emacs, vi, alpine, and irssi, and automatically recovers from occasional prediction errors within an RTT. On high-latency links, Mosh underlines its predictions while they are outstanding and removes the underline when they are confirmed by the server.

Mosh does not support X forwarding or the non-interactive uses of SSH, including port forwarding.
@MozzieW #10 十多年,那么多人,都没有解决的问题,是他们都不够聪明吗?还是不想解决,痛点不够痛?

其实是底层选型的问题,导致实现起来太困难。抱歉,我没有能力在原项目上解决,我并不比那些人厉害。
2025 年 7 月 3 日
回复了 LaGeNanRen 创建的主题 反馈 《发布这个内容需要你已经注册满 2025 天》
发票
2025 年 4 月 7 日
回复了 xiaotiantian007 创建的主题 剧集 说说你 N 刷的国产经典电视剧。
《铁齿铜牙纪晓岚》
2024 年 11 月 20 日
回复了 Leon6868 创建的主题 程序员 现代化 SSH 客户端求推荐
tssh https://github.com/trzsz/trzsz-ssh 配合其他终端食用
@molezznet 可以 -F 指定配置文件,-i 指定私钥文件。
2024 年 9 月 22 日
回复了 drymonfidelia 创建的主题 macOS macOS 有没有一款 **开源** 的好用的 SSH 客户端?
2024 年 8 月 30 日
回复了 BlackSnow 创建的主题 SSH SSHD 配置问题
这个配置是 900 秒,不是 900 分钟。另外,你可以试试 tssh https://github.com/trzsz/trzsz-ssh
2024 年 8 月 14 日
回复了 BlackSnow 创建的主题 Vim vim 无法设置无名寄存器作为系统剪切板
试试 tssh https://github.com/trzsz/trzsz-ssh

sftp 的目的传文件,trzsz 和 rz sz 也一样可以,tssh 支持拖曳上传。
#24 具体可看 https://github.com/trzsz/trzsz-ssh/blob/main/README.cn.md#%E8%AE%B0%E4%BD%8F%E7%AD%94%E6%A1%88 这个文档,tssh 将在 v0.1.22 正式支持,在此之前可以 go install github.com/trzsz/trzsz-ssh/cmd/tssh@main 这样安装。

自己实现获取动态密码的程序,指定 %q 参数可以得到问题内容,将动态密码输出到 stdout 并正常退出即可,调试信息可以输出到 stderr ( tssh --debug 运行时可以看到 )。配置举例(序号代表第几个问题,一般只有一个问题,只需配置 OtpCommand1 即可):

Host custom_otp_command
#!! OtpCommand1 /path/to/your_own_program %q
#!! OtpCommand2 C:\python3\bin\python C:\your_python_code.py %q
2024 年 7 月 21 日
回复了 binghe 创建的主题 Android 安卓系统手机,求各种软件推荐
@aizya #21 如有需要,我可以修改一下 tssh 。欢迎加入 QQ 群详聊,群号在 tssh 的 github 首页最下面。
可以自己改一下 tssh 的代码 https://github.com/trzsz/trzsz-ssh/blob/d154d5bba805fa21d36fd0b02a4df6cd4dae374d/tssh/login.go#L593

将 question 传给配置的 OtpCommand1 命令,这个命令对应的程序再自己实现,从参数 question 解释出 SHA256 码,调用 REST 接口获取到动态密码后,输出到 stdout 即可。
2024 年 7 月 8 日
回复了 0x5c0f 创建的主题 Linux 收集下各位 Linux 下所使用的那些好用的工具
2024 年 7 月 8 日
回复了 LonnyWong 创建的主题 推广 在升级到 go1.21 与兼容 Win7 之间,你会如何选择?
@Yadomin #62 ssh 是特别敏感的工具,不会加任何统计和上报之类的,避免让人误会。
2024 年 7 月 8 日
回复了 LonnyWong 创建的主题 推广 在升级到 go1.21 与兼容 Win7 之间,你会如何选择?
@BeautifulSoap #90 我是在背景中讲了我的项目,因为升级 go1.21 不是心血来潮的,是有原因的。另外,我在 V2 也基本只讲与我项目有关的事情,一是能引起我兴趣的话题不多,二是我不想(也不敢)参与其他敏感话题,因为我算是半实名了(有关部门能查到我是谁)。最后,花了大力气写出来的东西,有人用也就足够了,不求 star ,更不求打赏。
1 ... 3  4  5  6  7  8  9  10  11  12 ... 29  
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3099 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 51ms · UTC 13:48 · PVG 21:48 · LAX 06:48 · JFK 09:48
♥ Do have faith in what you're doing.