On 24/01/2022 08:59, Baptiste Daroussin wrote:
On Mon, Jan 24, 2022 at 12:12:20AM -0800, Chris wrote:
On 2022-01-23 10:19, Patrick M. Hausen wrote:
Hi all,


<snip>



based on the discussion I am adding right now, a new protocol: tcp:// which uses
the protocol we made on top of ssh way simple than ftp and capsicumized on the
server side), but without the requirement for a ssh connection.

This will enable people with performance concern but still willing to have data
encrypted to use spiped or socat for example as a transport.

And for other a simple inetd will work.

on inetd.conf

pkg stream tcp nowait nobody /usr/local/sbin/pkg -- -o 
SSH_RESTRICT_DIR=/mypackages ssh


and define in /etc/services "pkg" to the port you want pkg to be serving its
files to.

for the repo on the pkg side:

tcp://url:port/mypackages

What do you think?

Not having a preference re: ftp I think this tcp:// option looks very useful. As an aside has anyone written up how to setup a repo over ssh? I've had a quick google with no luck. I'm sure its not too tricky and an hour or so I could work it out but if anyone has already done it that would be great.

Thanks,
Vince
For me as a maintainer it is very few lines of code to add, the protocol
itself being already written, way easier to suppoer and it provides an 
interesting feature
by the ability to serve via spiped or inetd.

Best regards,
Bapt


Reply via email to