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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Why not just use ssh for everything

6 点作者 biturd大约 10 年前
We have all these so called secure messaging apps, some are OSS, some are not, it&#x27;s kinda a mess.<p>I can open an ssh connection to a remote server, a friend can do the same, and we can use wall or tail files or whatever, essentially, we can chat, insecurely on a box that we have a secure connection to.<p>I am sure it would not be hard to make the ssh libraries the core of an app that chats, talks, walks, runs, or does whatever, securely.<p>Why aren&#x27;t we just doing thing instead of reinventing all these secure transports?

4 条评论

SixSigma大约 10 年前
Classic &quot;Worse is better&quot;<p>I shall let Rob Pike explain :<p>When I was on Plan 9, everything was connected and uniform. Now everything isn&#x27;t connected, just connected to the cloud, which isn&#x27;t the same thing. And uniform? Far from it, except in mediocrity. This is 2012 and we&#x27;re still stitching together little microcomputers with HTTPS and ssh and calling it revolutionary. I sorely miss the unified system view of the world we had at Bell Labs, and the way things are going that seems unlikely to come back any time soon.<p><a href="http:&#x2F;&#x2F;rob.pike.usesthis.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;rob.pike.usesthis.com&#x2F;</a>
评论 #9543467 未加载
评论 #9540528 未加载
JoachimSchipper大约 10 年前
SSH or SSL doesn&#x27;t get you e.g. end-to-end security; the model you propose is equivalent to chatting via a server over HTTPS, which is indeed very common. (In general, OpenSSH is great but the SSH protocol itself isn&#x27;t all that special.)<p>Something like TextSecure improves on the security of SSH&#x2F;SSL for its specific use case: end-to-end security, message-level forward-security even if the receiver is offline at the moment, deniable messages (instead of allowing the receiver to prove you sent them), etc.<p>Many other applications use SSL as a transport and try to add some X-factor (integration with Facebook&#x2F;GMail&#x2F;$GAME&#x2F;...); these applications would still get made if the underlying transport changed to SSH.
EvanPlaice大约 10 年前
<i></i>tl;dr: security is the issue, users can&#x27;t be trusted<i></i><p>SSH is a &#x27;general purpose&#x27; protocol for remote filesystem access. Clients with lax permissions are an attack risk. Non-technical users can&#x27;t be depended upon to handle permissions. As such, SSH is commonly blocked at the firewall to prevent such malicious access.<p>HTTPS is rarely blocked. HTTPS is inherently safe because it doesn&#x27;t grant access to anything that isn&#x27;t explicitly defined the HTTP-layer API. HTTPS connections are usually handled via browsers that come with sandboxed memory spaces; even if a malicious actor manages to establish remote code execution in the client there&#x27;s little&#x2F;no risk of compromising the user&#x27;s OS via a buffer overflow or equivalent attack vector.
pshc大约 10 年前
It takes a long time and many round trips to establish an SSH connection. You can keep a shared connection open as a workaround. But mobile devices (laptops included) don&#x27;t persist connections, because batteries.<p>Maybe you could do it on top of mosh? <a href="https:&#x2F;&#x2F;mosh.mit.edu&#x2F;" rel="nofollow">https:&#x2F;&#x2F;mosh.mit.edu&#x2F;</a>