TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Mosh: A replacement for SSH

402 点作者 jayfk超过 10 年前

22 条评论

hf超过 10 年前
Mosh is a truly impressive feat of thought and, perhaps more importantly, engineering. The thinking behind Mosh is substantial, the paradigms are fresh. Reading about mosh on its excellent website, I <i>always</i> leave with a profound feeling of enthusiasm. Mosh belongs a school of software development ethics that I&#x27;m sorely missing in the world.<p>However, I do concur that, perhaps, Mosh solves a deep problem on the wrong level or, even, in the wrong domain. The feeling, already expressed here, that &quot;tmux oughta do it&quot; never leaves me. Why is that?<p>Because I know that ssh, by itsself, can handle connection loss quite well[0]. Rather, I suspect, ssh can&#x27;t deal with IP changes or the destruction of the underlying interface.<p>So, here&#x27;s the rub: Why is a stable, somehow-abstract, network interface with a local IP, sitting on top of the actual network interfaces, be they wired or wireless, <i>not</i> the answer? Over the years, on and off, I tried to get the Linux ethernet bonding stack (ifenslave) to provide me with just that solution, but was never able to.<p>Hence, I keep revisiting mosh, then revisiting ifenslave...<p>[0] On a machine that doesn&#x27;t dynamically switch network interfaces on demand, just unplug an ethernet cable, wait a while and plug it back in: your ssh session will resume.
评论 #8254936 未加载
评论 #8254180 未加载
评论 #8252850 未加载
评论 #8253075 未加载
sagichmal超过 10 年前
Mosh is brilliant software. I use it every day. Being able to close my laptop, move to a different café, and open it back up with all of my sessions seamlessly reconnecting is invaluable.<p>But -- mosh still can&#x27;t do proper SSH agent forwarding[0], which is a real drag. Many of my common workflows become impossible. I hope it gets fixed!<p>[0] <a href="https://github.com/keithw/mosh/issues/120" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;keithw&#x2F;mosh&#x2F;issues&#x2F;120</a>
评论 #8252148 未加载
评论 #8252254 未加载
评论 #8252182 未加载
评论 #8255074 未加载
评论 #8252440 未加载
评论 #8252305 未加载
评论 #8252143 未加载
评论 #8252278 未加载
评论 #8253586 未加载
评论 #8252141 未加载
zeograd超过 10 年前
Too bad mosh needs an udp port to run its own server.<p>One of the greatness of ssh is its lean network requirements (it can even be considered https if seen from intermediate proxies, hence whitelisted) and this extra udp port is quite a burden in some environments.<p>I still agree that mosh is a fine tool for mobile users. I&#x27;m just a tad worried about its security layer implementation being less audites than openssh for instance (as mosh isn&#x27;t as widely used)...
评论 #8252197 未加载
kolev超过 10 年前
It&#x27;s not a replacement at all - it doesn&#x27;t support scroll back (screen buffer). Latency often changes the order of keystrokes. I&#x27;ve tried to used it so many times and gave up every single time after the enthusiasm ran out.
评论 #8252220 未加载
评论 #8252236 未加载
评论 #8252202 未加载
sjackso超过 10 年前
Several commenters are asking what mosh provides that&#x27;s better than ssh+screen&#x2F;tmux.<p>A few years ago I spent a summer at a remote field site, sharing a flaky T1 with 100 other people over equally flaky site-wide wireless network. (Many of those people were undergraduates who had been politely asked not to use the research network to access facebook, but, well, you know.) Not only was packet loss common, but latencies to an outside host varied whimsically from 50ms to 2000ms. In those conditions ssh was unusable, tmux or not. I was able to do work on remote servers only because of mosh.
评论 #8253571 未加载
blueskin_超过 10 年前
My main issue with mosh is having to open a massive UDP port range, which just goes against my instinct when it comes to security.<p>The other security issue is the whole &#x27;seamless reconnect&#x27; - it&#x27;s probably been thought of, but does anyone have any links to how they&#x27;ve mitigated the massive MITM risk this opens users to?
评论 #8252393 未加载
emikulic超过 10 年前
I wish half of this had been implemented in tmux instead. tmux is already client&#x2F;server, add local typeahead (which is very cool) to the client and let me run it over whatever transport I want (spoiler: it will still be ssh, because I don&#x27;t really benefit that much from their reinvention of TCP)
评论 #8289136 未加载
nieve超过 10 年前
My biggest complaint about Mosh is that how it handles the login sequence breaks common .bashrc&#x2F;.bash_profile idioms like<p>test -z &quot;$BASHPROFILEREAD&quot; || return<p>(to avoid double-sourcing) and there&#x27;s no good way to fix them. I haven&#x27;t tested ksh93&#x2F;zsh yet, but I suspect similar issues. I suspect the developers do little more with their shell initialization than set a few aliases and variables so it&#x27;s not an issue for them, but fixing it for myself is far more work than worth it. It&#x27;s too bad, everything else works well for me with mosh.
phil_ips超过 10 年前
Was thinking before opening the link.. do we really need a replacement for SSH?<p>&gt; supports intermittent connectivity<p>That&#x27;s all you need to say really..!
评论 #8252232 未加载
zobzu超过 10 年前
are those links becoming invalidated after 3month and auto reposted or something ? This URL must have shown up like 3 times on the front page in the past year alone
Gonzih超过 10 年前
How it can be replacement if it uses ssh to start daemon on server to listen on UDP port? But yes, it&#x27;s great. Still not perfect, still issues with non unicode chars sometime, still some issues with rendering from time to time.
评论 #8252768 未加载
dllthomas超过 10 年前
I actually find lack of local echo somewhat valuable. When my connection is spotty, that gives me immediate feedback about what is and is not getting through.
评论 #8253780 未加载
snvzz超过 10 年前
Mosh is nice, but &quot;A replacement for SSH&quot; is quite stretching it, considering it does use ssh to setup its own connection and so it depends on SSH.<p>It also doesn&#x27;t provide most of SSH functionality, and it doesn&#x27;t support IPv6 yet, whereas SSH does.
theandrewbailey超过 10 年前
Getting 403 forbidden, so have some cache:<p><a href="https://webcache.googleusercontent.com/search?q=cache:Sb3IKAMHCSEJ:https://mosh.mit.edu/+&amp;cd=1" rel="nofollow">https:&#x2F;&#x2F;webcache.googleusercontent.com&#x2F;search?q=cache:Sb3IKA...</a>
afarrell超过 10 年前
I have been using mosh for two years now and it has greatly improved my life. It means that rather than buying a brand-new laptop, I can just connect to a $5&#x2F;mo linode with an SSD and program on that.
pbhjpbhj超过 10 年前
FYI to install on Kubuntu 14.04 I only needed to &quot;sudo apt-get install mosh&quot; to get mosh 1.2.4a.
lasermike026超过 10 年前
Has security review been done?
评论 #8253190 未加载
teamhappy超过 10 年前
Still one of of my favourite tech talks. Mosh is great too.
plicense超过 10 年前
Aw, fonts - <a href="http://imgur.com/v9E9vOY" rel="nofollow">http:&#x2F;&#x2F;imgur.com&#x2F;v9E9vOY</a>, the full stop under the P.
zhovner超过 10 年前
Scrolling still not working?
评论 #8253010 未加载
评论 #8252394 未加载
评论 #8253443 未加载
评论 #8253444 未加载
xxdesmus超过 10 年前
Nice repost? Posts about Mosh from 2 years ago:<p><a href="https://news.ycombinator.com/item?id=3819382" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=3819382</a> <a href="https://news.ycombinator.com/item?id=5016745" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=5016745</a> <a href="https://news.ycombinator.com/item?id=3871687" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=3871687</a> <a href="https://news.ycombinator.com/item?id=3814589" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=3814589</a><p>...just to name a few examples.<p>Mosh is awesome, but also not something new.
评论 #8253397 未加载
评论 #8252980 未加载
hbbio超过 10 年前
In French, Mosh is exactly pronounced as &quot;moche&quot; which means ugly.<p>Of course, this doesn&#x27;t change anything in the project interest!
评论 #8253680 未加载