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

Re: Configuring a Debian system



Fernando <alegre@superlink.net> writes:

> Could someone please tell me in  which mailing list this thread originated?
> I would like to read the beginning of the thread.

I contacted Joey privately, he isn't on this list, or wasn't. I
thought this might be intresting for others too, so I added a CC to
this list. I hope nobody minds.

You should have a look at Joey's work. Save the stuff below into a
file and do

export CVS_RSH=<file>
cvs -z5 -d :ext:cvs@kitenet.net:/home/cvs/repository checkout debconf


--------------------------------------------------------------------

#!/usr/bin/perl -w
# This program implements the client side of anonymous cvs over ssh.
# No more pserver! For details on how to use this and how it works,
# visit http://kitenet.net/programs/perlmoo/sshcvs/
#
# This is copyright 1999 by Joey Hess under the terms of the GPL.
#
# This is the Base64 encoded "private" key to use to access the server.
# It's not really private, of course, but it is a nasty binary file which
# is why it has been so encoded.

my $identity=<<__END__;
U1NIIFBSSVZBVEUgS0VZIEZJTEUgRk9STUFUIDEuMQoAAAAAAAAAAAQABAC5iPvD30rg/PLWxh3D
c1aAStU+kLgzPPuxadvNk9YAp8eE6wXEwirwR01yzjD/ec25nJCmRC9rn+7bZV/h7rOYnitVKjJr
uLHxvw4ZSBnXyGxAdWVgi+CMvLc8JMzAaFvfDyW63ASNch35YomSnp17TU3kEi6gd8wrA443sUNM
NwAGJQAAAAhjdnNAa2l0ZSMSIxID+gOfHkigzZHYWU3+fFpNNM/D9Y5KUgKJpZXp2Z+wPjgiBpXQ
T64fdzqBAeVpgJJwsiRLtGi5ERHcTIrRKXaSf0b7WF17FPnZE7LiYsy+RYbO+3pDLux84cuZiide
MdMQmZ4JHjgaNjmzW5jw9ZpLNvbdGC/to2sv5xLSsFZ0sLFVAf9Em2Y3t2A1HnNSwM7kdkMzwAa1
xXc8wfb+EgmUOzmBBbQfO8F8c0JKpQxg5fDWR0eGw36SnVAJAZxDAnmieh5/AgDUVO6Ye/mvKyWd
co7MZQERiQrxINNW3D+SGydN/rYlYQr4SnuJtUhK8PqVHJG5sJ99Y+MJFarJbUP3QJu6VYrPAgDf
sTtSl4XTlZ1J1fPKaHnoj9GcQxJemY6YCgyarhwEPOUIp7ZiOi9CiZ6U5CBNxZwunLhnAm610g8J
7///QuIZAAAAAA==
__END__

###############################################################################
use MIME::Base64;
use IO::File;

# Decode the identity file and save it to a temporary file.
my $tmp=$ENV{HOME}."/.anoncvs-identity-tmp-".$$;
open (OUT, ">$tmp") || die "open $tmp: $!";
print OUT decode_base64($identity);
close OUT;

# Now run ssh. Cvs will tell it what host to connect to as what user
# and will proceed to communicate with the cvs server over the ssh link.
system('ssh','-C','-q','-i',$tmp,@ARGV);

# Clean up.
unlink $tmp || die "unlink $tmp: $!"

------------------------------------------------------------------------------

MfG,
	Goswin


Reply to: