!coeAONBrWyDJnYMbMi:nixos.org

NixOS System Operations

545 Members
About system administration for running NixOS systems in production. Declaratively manage your operations. | Room recommendations: #networking:nixos.org145 Servers

Load older messages


SenderMessageTime
26 Feb 2025
@hexa:lossy.networkhexaalso a valid choice20:24:05
@hexa:lossy.networkhexaso what happens is that due to too many connection requests ssh also sometimes drops my connect attempts20:25:54
@hexa:lossy.networkhexamildly annoying 🙂 20:26:06
@hexa:lossy.networkhexa

sshd[1969703]: error: beginning MaxStartups throttling

20:26:57
@hexa:lossy.networkhexadue to that20:26:58
@dgrig:erethon.comdgrigAll the things you mentioned help however. I personally change the ssh port, enable fail2ban and for a lot of hosts don't have ssh enabled over the internet since wireguard works good enough for me. Other people I know enable ssh only over tor hidden services, but I don't trust tor starting fast enough after a restart /shrug20:27:01
@magic_rb:matrix.redalder.orgmagic_rbI only allow ssh over wireguard period20:28:33
@dgrig:erethon.comdgrig(waiting for a new circuit after a restart can be a bit annoying if you're trying to ssh right after a restart in my opinion)20:28:36
@scrumplex:duckhub.ioScrumplexAnother way to reduce ssh bot noise is to limit sshd to listen on IPv6 only20:50:50
@sigmasquadron:matrix.orgFernando Rodrigues
In reply to @magic_rb:matrix.redalder.org
I only allow ssh over wireguard period
ssh over wireguard is so nice
21:36:06
@hexa:lossy.networkhexayeah, much nicer than just using ssh over internet21:38:07
@hexa:lossy.networkhexa * yeah, much nicer than just using ssh over internet \s 21:38:09
@hexa:lossy.networkhexato be clear, I have a wireguard/babel mesh, so I can ssh over a routed connection of private addresses21:38:39
@sigmasquadron:matrix.orgFernando Rodrigues
In reply to @hexa:lossy.network
yeah, much nicer than just using ssh over internet \s
i mean, unironically yes.
21:38:43
@hexa:lossy.networkhexabut now imagine a git host21:38:49
@sigmasquadron:matrix.orgFernando RodriguesI don't see the issue?21:39:11
@hexa:lossy.networkhexagit+ssh21:39:19
@hexa:lossy.networkhexa* git+ssh://21:39:30
@sigmasquadron:matrix.orgFernando RodriguesSure, just change the IP from whatever it was before to the wireguard address.21:39:43
@sigmasquadron:matrix.orgFernando Rodriguesditto with a domain21:39:50
@hexa:lossy.networkhexaa custom port is too cumbersome, means everyone needs to maintain ssh configs etc.21:39:50
@hexa:lossy.networkhexapublic git access over ssh21:40:04
@hexa:lossy.networkhexaforgejo21:40:07
@hexa:lossy.networkhexagitlab21:40:09
@sigmasquadron:matrix.orgFernando Rodriguesah, yes. forgejo.21:40:26
@sigmasquadron:matrix.orgFernando Rodriguescurrently i use a nginx stream to proxy ssh connections over a wireguard tunnel to a forgejo host21:40:55
@hexa:lossy.networkhexanginx stream is a fancy word for saying "socat"21:41:10
@sigmasquadron:matrix.orgFernando Rodriguesyes21:41:16
@dgrig:erethon.comdgrig(gitlab automatically adds the ssh port in the UI when copying the git clone command iirc, but agreed it can be a pita)21:43:12
@hexa:lossy.networkhexachanging the ssh port means everyone needs to adapt on every machine for every application using it21:47:42

Show newer messages


Back to Room ListRoom Version: 10