cvsup through ssh forwarding

Doug Poland doug at polands.org
Thu Mar 31 20:24:45 PST 2005


On Thu, Mar 31, 2005 at 08:06:36PM -0800, Mark Jayson Alvarez wrote:
> Good day,
>   I'm looking for some sort of way to update the ports
> collection in my (private-ip'd) workstation via cvsup
> by tunneling it through on of our public-ip'd
> machines. Have you ever accomplished the same thing.
> Isn't it that ssh forwarding requires you to supply
> your username and password in the remote machine such
> that the imap/pop polling works well through ssh
> tunnelling. What should I give if I am to tunnel a
> cvsup connection?
> 
If you grep for cvsup in /etc/services you see:

    % grep cvsup /etc/services
    cvsup           5999/tcp   #CVSup file transfer/John Polstra/FreeBSD

So, therefore you need to tunnel port 5999 using syntax similar to:

    % ssh -L5999:cvsupXX.freebsd.org:5999 myaccount at mypublic-server

Then, when you issue the cvsup command itself, reference localhost:

    #cvsup -g -L 2 /usr/local/etc/cvsup/sup/ports -h localhost


-- 
Regards,
Doug


More information about the freebsd-questions mailing list