

My appologies, but I'm an ssh tunneling n00b.Īnyway steps 1 & 2 work fine, but when I "emerge sync" on my local machine I get: I'm in the same situation and would love to do this, but I have (probably an ssh config problem). Posted: Tue 6:39 pm Post subject: Re: rsyncing behind a firewall Sounds like you don't have network access. Notice: (-3, 'Temporary failure in name resolution') Rsync error: error in socket IO (code 10) at clientserver.c(8 Rsync: getaddrinfo: 873: Temporary failure in name resolution > Starting retry 2 of 3 with rsync:///gentoo-portage That at least lets me get away with not opening up the rsync port. I guess I'll be running an rsync server at home and just foward the port as outlined in the original posting.
#Rsync through ssh proxy firewall code#
Looks like this format for $SYNC is looked through the emerge code and it only seems to accept "rsync://*" and "cvs://*" formats (and the metadata function). Maybe I could play with setting $SYNC to something to top I tried setting the RSYNC_RSH environment variable, but that seems to get ignored (presumably because of the "rsync://" prefix in $SYNC. The port forwarding method on the OP solves my requisite for not running an rsync server on my home machine (and thus opening up another port on the firewall), but shouldn't there be a way to integrate that into the SYNC="." setting in nf, making it do the equivalent of: Posted: Tue 5:15 pm Post subject: maybe I'm confused too The first time I ran it, it took 2 hours! Using rsync properly is a far better solution - that's why Portage uses it.

It downloads the entire Portage tree every time. I disagree - I've been using emerge-webrsync for the last few weeks and it's hideously slow. It's the inside-out problem.Ī webrsync is the fastest (and easiest) way to do it, stillĬomputer science is no more about computers than astronomy is about telescopes. This is about rsync tunnelled over ssh, not rsync using ssh. Only if you have ssh access to the final host you are trying to rsync to/from. I'm not sure why I thought you could actually.Ĭorrect me if I'm wrong, but can't you just use the flag?Īsus SB128PCI|32MB NVIDIA/TNT2AGP|512MBPC-133 Rsync error: error in socket IO (code 10) at clientserver.c(88)Īny idea why it's not retrieving the timestamp? I'd really like to get this working - emerge-webrsync really isn't ideal for me.ĮDIT: Solved! You can't override SYNC from the command line. Rsync: failed to connect to 65.19.163.230: Connection timed out # SYNC="rsync://localhost:4040/gentoo-portage" emerge sync $ rsync rsync://localhost:4040/gentoo-portage $ ssh -L 4040::873 I tried rsync directly: Well, I just tried this after coming to the same set of commands myself.įirst I created the tunnel to my external rsync-permitted machine: The way we do it here (I'm the admin) is that we have a proxy which allows connections to TCP port 873 which is what rsync uses. Ssh -L 4040::873 ģ.) Now rsync as usual from another prompt: SYNC="rsync://localhost:4040/gentoo-portage"Ģ.) Make an ssh tunnel from your Gentoo box to the remote box to go to, i.e. ) On the Gentoo machine, edit nf and change SYNC to: Sounds like a solution for an SSH tunnel!ġ. But I can ssh to a machine outside the firewall that can. I have a Gentoo machine behind a firewall that doesn't let rsync through. Posted: Tue 2:01 pm Post subject: rsyncing behind a firewall Gentoo Forums Forum Index Documentation, Tips & Tricks Gentoo Forums :: View topic - rsyncing behind a firewall
