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

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

 



 

> -----Original Message-----
> From: fedora-list-bounces@xxxxxxxxxx 
> [mailto:fedora-list-bounces@xxxxxxxxxx] On Behalf Of Mike McGrath
> Sent: Wednesday, May 25, 2005 11:17 PM
> To: For users of Fedora Core releases
> Subject: RE: Replacing Apt with Yum.. SSH:// Support?
> 
>  
> 
> > -----Original Message-----
> > From: fedora-list-bounces@xxxxxxxxxx
> > [mailto:fedora-list-bounces@xxxxxxxxxx] 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@xxxxxxxxxx
> > 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
> 
> 
> -- 
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
> 
> 

Sorry, That was for a remote port forward.  Replace the "-R" with "-L":

log1:3:respawn:/usr/bin/ssh -nNtx -L 80:localhost:80 servbox > /dev/null

	-Mike



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux