Re: Restrict SSH to local network only except for Git users?

2023-07-27 Thread Stuart Henderson
On 2023-07-27, lain. wrote: > I have a pretty nifty network setup that allows me to host from home via > WireGuard. > But there's one thing I'm struggling with. > Because for security reasons, I made it impossible for people outside > the network to connect via SSH, but for Git to function properl

Re: Restrict SSH to local network only except for Git users?

2023-07-27 Thread lain.
I don't think this works when you're hosting a public Git service. I actually decided to just continue using the VPS that only ran Git. The reason why I wanted to internalize it was because the server was getting full, but it turned out that 1 repository by someone who only mirrors their repository

Re: Restrict SSH to local network only except for Git users?

2023-07-26 Thread Stephen Wiley
You might consider keeping your repo in an web/http directory for pulling and having your other users submit patches to you via eg email. That way you don't need ssh exposed to the public internet at all. That's how I have my self hosted git repos set up anyway. On Thu, Jul 27, 2023 at 09:24:56A

Re: Restrict SSH to local network only except for Git users?

2023-07-26 Thread Aaron Mason
On Thu, Jul 27, 2023 at 10:28 AM lain. wrote: > > I have a pretty nifty network setup that allows me to host from home via > WireGuard. > But there's one thing I'm struggling with. > Because for security reasons, I made it impossible for people outside > the network to connect via SSH, but for Git

Restrict SSH to local network only except for Git users?

2023-07-26 Thread lain.
I have a pretty nifty network setup that allows me to host from home via WireGuard. But there's one thing I'm struggling with. Because for security reasons, I made it impossible for people outside the network to connect via SSH, but for Git to function properly, I need to allow SSH only for git@(DO