Replacing Apt with Yum.. SSH:// Support?

Mike McGrath mmcgrath at iesabroad.org
Thu May 26 04:17:22 UTC 2005


 

> -----Original Message-----
> From: fedora-list-bounces at redhat.com 
> [mailto:fedora-list-bounces at redhat.com] On Behalf Of Pete Toscano
> Sent: Wednesday, May 25, 2005 9:44 PM
> To: For users of Fedora Core releases
> Subject: Re: Replacing Apt with Yum.. SSH:// Support?
> 
> Les Mikesell wrote:
> 
> > I've done stupid ssh tunneling tricks like this for the same reason.
> > Make the ssh connection with -R:3128:your_proxy:3128 (assuming the 
> > standard squid port).  Then on the remote machine:
> > http_proxy=http://localhost:3128 
> ftp_proxy=http://localhost:3128 yum 
> > update.
> 
> Thanks for the tip.  I was thinking I'd set up apache on the 
> server and have it bind to localhost:80, then, on the clients 
> just do something like this:
> 
> ssh -N -L 80:localhost:80 serverbox &
> 
> Of course, it's not tested, so I might need to do the squid 
> proxy anyway.  :)
> 
> > Should work with apt too,
> 
> Apt supports ssh with ssh://, so I don't need to jump through 
> any hoops.
>  (Well, at least I don't have to jump through any hoops to 
> make apt happy.)
> 
> pete
> 
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
> 
>

You can also put this in your inittab:
/etc/inittab
######
log1:3:respawn:/usr/bin/ssh -nNtx -R 80:localhost:80 servbox > /dev/null
2>&1 
######

As you probably guessed at that point you'd just point your yum config's
to localhost, Ya' dig?

	-Mike





More information about the fedora-list mailing list