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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: I made Devzat – It's like Discord but in the terminal, over SSH

391 点作者 quackduck大约 3 年前
Run `ssh devzat.hackclub.com` to try it out! The repo is here: https:&#x2F;&#x2F;github.com&#x2F;quackduck&#x2F;devzat (golang). It has markdown and emoji support, DMs, channels, and it can show images too. You can send code, and it gets syntax highlighted (you can change the theme). You can ping people like so: @user and it sends them a \a, which should play an audible sound if the terminal allows it. There&#x27;s inbuilt games and rainbow names and a lot of other small things I don&#x27;t remember right now.<p>You might find the auth system interesting: it&#x27;s based on a hash of ssh pubkey (bans use that and a hash of IP, so it isn&#x27;t so easy to get around a ban)<p>Also an interesting issue: bots that go around trying to brute force ssh into random IPs with common usernames. My current solution is banning if rapid successive joins are detected.

37 条评论

geoah大约 3 年前
Love the fact that there are currently more people on the server than likes on this post :D<p>You might wanna take a look at <a href="https:&#x2F;&#x2F;github.com&#x2F;charmbracelet&#x2F;bubbletea" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;charmbracelet&#x2F;bubbletea</a> ad specifically <a href="https:&#x2F;&#x2F;github.com&#x2F;charmbracelet&#x2F;soft-serve" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;charmbracelet&#x2F;soft-serve</a> for v2.<p>IRC style commands that are only sent to the sender would also be nice as current version is a bit spammy with help and user commands.
评论 #30726974 未加载
评论 #30692682 未加载
makeworld大约 3 年前
I just get &quot;Permission denied (publickey)&quot;. The README says to just run ssh-keygen, but I already have an RSA key. Does this server only support ed25519 or something?
评论 #30691345 未加载
评论 #30692738 未加载
评论 #30691436 未加载
0xbadcafebee大约 3 年前
&gt; It&#x27;s like discord but in the terminal, over SSH<p>so it&#x27;s IRC?
评论 #30692688 未加载
评论 #30696658 未加载
评论 #30710557 未加载
评论 #30692956 未加载
quackduck大约 3 年前
Devzat will be temporarily down while I figure out some good auto-moderation
评论 #30694972 未加载
anfogoat大约 3 年前
Really like this, great work! For those who aren&#x27;t aware, there are more of these: ssh-chat[0][1] and sshtalk[2].<p>[0]: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8828543" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8828543</a><p>[1]: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8743374" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8743374</a><p>[2]: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=15829206" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=15829206</a>
rav大约 3 年前
After living through Google Chat going down while handling a server incident at work, I created an internal, encrypted chat system in order to have an alternative in case our regular communications channel is down.<p>However the actual chat part of it is very barebones with a simplistic JSON-based protocol and a simplistic IRC-like interface - quite unlike devzat.<p>I wonder how hard it would be to untangle the authentication and transport bits from devzat and plug in our own proprietary auth&#x2F;transport.
评论 #30692619 未加载
评论 #30693488 未加载
exabrial大约 3 年前
make sure one&#x27;s ssh-agent forwarding is off when connecting to strange hosts :)
评论 #30698424 未加载
评论 #30693777 未加载
leowoo91大约 3 年前
Did you know you are exposing your identity for each &quot;permission denied&quot; error? SSH repeatedly tries all of your public keys to authenticate. Someone was able to harvest that and figure multiple github profiles of the client in past.
评论 #30699445 未加载
评论 #30695997 未加载
评论 #30697305 未加载
quackduck大约 3 年前
Holy crap, moderation is hard.
评论 #30698703 未加载
gzer0大约 3 年前
I&#x27;m in the terminal &#x2F; chat right now. This is giving me major 90&#x27;s nostalgia! Incredible.
评论 #30694056 未加载
评论 #30700779 未加载
hdb2大约 3 年前
I really dig this, but if I issue a command like cd, the output should only be showed to the person who issued the command.<p>but this is really fun! nice job!
评论 #30692709 未加载
boxingrock大约 3 年前
i knew the name looked familiar... there&#x27;s already a hackthebox out for it: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=QEgtbzS1Pyc" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=QEgtbzS1Pyc</a>
评论 #30692695 未加载
nog0x7cd大约 3 年前
Looks cool, joined and made friends with a french dude. Totally forgot how cool irc-like minimalism can be sometimes.
评论 #30692645 未加载
bovermyer大约 3 年前
I like it. A few observations:<p>* Hangman doesn&#x27;t give you credit for all instances of a letter when you guess it<p>* Starting a new game of hangman (maybe also TTT?) interrupts&#x2F;erases the previous one, if there&#x27;s one in progress<p>* Images can be anything and aren&#x27;t filtered - troll users could present some nasty stuff<p>* User settings don&#x27;t persist (e.g., nickname)
评论 #30692790 未加载
评论 #30691371 未加载
quackduck大约 3 年前
Okay auto-moderation seems to be working surprisingly well! Related commit: <a href="https:&#x2F;&#x2F;github.com&#x2F;quackduck&#x2F;devzat&#x2F;commit&#x2F;866c33a7d24b43f269fa5c1049d335e802b5bfe2" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;quackduck&#x2F;devzat&#x2F;commit&#x2F;866c33a7d24b43f26...</a>
a1445c8b大约 3 年前
TIP: If you want to be truly anonymous, don’t use the same identity file that you use to ID yourself with Github since the latter publishes your pubkey in <a href="https:&#x2F;&#x2F;github.com&#x2F;&lt;username&gt;.keys" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;&lt;username&gt;.keys</a>
jawngee大约 3 年前
Back in the mid 90&#x27;s, I used to hang out on what was called vrave, a telnet based chat hosted at hyperreal.org (Apache&#x27;s&#x27; Brian Behlendorf&#x27;s rave archive&#x2F;culture site).<p>This is definitely making me nostalgic for it.
评论 #30695055 未加载
评论 #30693517 未加载
评论 #30693655 未加载
wingerlang大约 3 年前
Isn&#x27;t the only thing this has in common with Discord.. text chat?<p>That&#x27;s the LEAST interesting part about Discord, and it&#x27;s basically just table stakes for a chat service.
评论 #30695989 未加载
heyitsguay大约 3 年前
Is this working now? I logged on and can&#x27;t do anything and nothing seems to be happening, i just get a snippet of text starting &quot;38m earlier&quot;
评论 #30692471 未加载
评论 #30692626 未加载
eezurr大约 3 年前
Im not a command liner but was curious to check this out. I tried running ssh-keygen and the &quot;Enter file in which to save the key (C:\Users\...&#x2F;.ssh&#x2F;id_rsa):&quot; prompt appears and I lose ALL keyboard input to the command line. No CTRL C, no text, no enter. Cant do anything. Anyone aware of what the problem is?<p>Windows 10 PowerShell
评论 #30694878 未加载
评论 #30694833 未加载
bragr大约 3 年前
One thing that could help with the bots is leveraging some of the community generate blocklists for the ssh bots such as blocklist.de though there are other providers. It may not stop all of them, but will cut down a lot on the noise. These are generally useful for any ssh instance exposed to the internet.
评论 #30695653 未加载
Retr0id大约 3 年前
&gt; bans use that and a hash of IP<p>Why hash it? There are &lt;2^32 IP(v4) addresses, so it would be trivial to crack the hash.
评论 #30694401 未加载
nope96大约 3 年前
Nuclear Greenhouse BBS vibes!<p><a href="http:&#x2F;&#x2F;www.bbsdocumentary.com&#x2F;software&#x2F;IBM&#x2F;DOS&#x2F;GTALK&#x2F;bbs_gtalk_history.html" rel="nofollow">http:&#x2F;&#x2F;www.bbsdocumentary.com&#x2F;software&#x2F;IBM&#x2F;DOS&#x2F;GTALK&#x2F;bbs_gta...</a>
odonnellryan大约 3 年前
Lots of fun, but the issue with the images (is this the problem?) needs to be fixed. And the command issue where everyone sees the output - I wonder how hard that would be to address. Neat app!
评论 #30692656 未加载
AnnikaL大约 3 年前
Very cool project! I think having more channels would help cut down on the fast pace of chat, as well as the suggestions from others about making broadcasting commands to everyone opt-in.
评论 #30695590 未加载
GOATS-大约 3 年前
I&#x27;ve just spent an hour on here when I should really be sleeping. Reminded me a lot of public IRC channels back in the day, surprised how fun it was to hang out with everyone. :)
评论 #30694100 未加载
Jamie9912大约 3 年前
Joined but got banned pretty quickly after not saying a word :(
评论 #30694934 未加载
zomglings大约 3 年前
I typed &quot;hello&quot; and hit Enter, and the whole thing froze. Had to close my shell because I couldn&#x27;t get out of the chat session any other way. Not great.
评论 #30695293 未加载
评论 #30695126 未加载
humanwhosits大约 3 年前
I really like it, it seems like a great alternative to slack for a team that just wants non-notification chat
评论 #30693039 未加载
NylaTheWolf大约 3 年前
Damn this is sick! I&#x27;ll bookmark this so I can mess around with this later!
gompertz大约 3 年前
Reminds me of irssi... A terminal IRC client from way back! Great job!
评论 #30700873 未加载
alucardo大约 3 年前
Post a video of a demo of it. Might drain attention :)
评论 #30692942 未加载
jbirer大约 3 年前
Looks like the n-word filter is working.
wferrell大约 3 年前
This is fun. Well done!
评论 #30693300 未加载
paskozdilar大约 3 年前
&gt; Also an interesting issue: bots that go around trying to brute force ssh into random IPs with common usernames. My current solution is banning if rapid successive joins are detected.<p>I should&#x27;ve read this before trying to connect 100 usernames in parallel.
评论 #30693617 未加载
评论 #30693593 未加载
ilaksh大约 3 年前
Seems frozen
mixmastamyk大约 3 年前
What is discord? Yes, I’ve heard of the company, but haven’t used it. You might do better with “chat” as more folks know what that is.
评论 #30691411 未加载
评论 #30691347 未加载
评论 #30692048 未加载