[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh method in sources.list



This one time, at band camp, Egor Tur said:
>     Hi Folks!
> How write the ssh method in sources.list correctly?
>     Thanx.

I did this once for boxes on my LAN, but it won't work for public
mirrors, because it relies on having matching passphrase-less keypairs
for root.  Make a key for root, don't passphrase it.  Copy it to the
other box.  Set up /etc/hosts appropriately on both boxes, i.e:

192.168.1.2     MirrorBox
192.168.1.3     OtherBox

and then put

deb ssh://MirrorBox/mirrors/debian/ unstable main non-free contrib
deb ssh://MirrorBox/mirrors/debian/ unstable/non-US main contrib non-free

in your sources.list.

You'll have to use a tool like apt-move (or rsync, etc.) to set up the
mirror intitally on MirrorBox, though.

It's nice to do, if you don't have any other services (ftp, http)
running on MirrorBox, and you want to save download time, but the
overhead from ssh encryption slows things down a little, and as it only
works on a LAN (or at any rate, between 2 boxes that you have root on),
it might actually be faster to set up MirrorBox to serve http or ftp,
and then firewall appropriately.

HTH,
Steve
-- 
<Flav> Win 98 Psychic edition: We'll tell you where you're going tomorrow

Attachment: pgplbfvLz2a7k.pgp
Description: PGP signature


Reply to: