- 论坛徽章:
- 0
|
在按照正常的CVS配置完成后,执行
cvs -d :pserver:cvsroot@XXX.XXX.XXX.XXX:/home/cvsroot login
报错
cvs [login aborted]: reading from server: Connection reset by peer
在网上查了一圈,不知道什么问题,以前在sco上配置过没有问题,现在在tubrolinux上
网络上有个解释很接近
please try...
telnet xxx.xxx.xxx.xxx 2401
if the connection is close immediately, then you need to...
vi /etc/xinetd.conf
and mark only_from field
if the the connection is OK, then...
I'm wondering if you have added "-R" to "chown cvsroot:cvs /home/cvsroot".
It's important if you cvs init first with root.
但是我用的是inetd.conf配置的,不知道如何调整,我增加的配置如下
cvspserver stream tcp nowait root /usr/bin/cvs cvs --allow- root=/home/cvsroot pserver
检查了/home/cvsroot的权限是cvsroot:cvs
/home/cvsroot/CVSROOT下也手工编辑了passwd文件
cvsuser:XXXXXXXX:cvsroot
其中密码用以下文件生成:
vi /home/cvsroot/passwdgen.pl
文件内容:
#!/usr/bin/perl
srand (time());
my $randletter = "(int (rand (26)) + (int (rand (1) + .5) % 2 ? 65 : 97))";
my $salt = sprintf ("%c%c", eval $randletter, eval $randletter);
my $plaintext = shift;
my $crypttext = crypt ($plaintext, $salt);
print "${crypttext}\n";
使用cvsuser登陆也不行,请教各位达人,是何问题。 |
|