info-cvs
[Top][All Lists]
Advanced

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

Re: using CVS with SSH


From: Ronald Petty
Subject: Re: using CVS with SSH
Date: 10 Apr 2003 13:14:41 -0500

Ops, I stand corrected, I was replying and not thinking.  I thought he
was trying to connect to a pserver not ssh, sorry.  Mark is right, I am
wrong.

Ron

On Thu, 2003-04-10 at 12:01, Mark D. Baushke wrote:
> Ronald Petty <address@hidden> writes:
> 
> > I don't have pserver running, but couldn't you also check the server buy
> > telnet server 2401 ?
> > 
> > And see if you get a response?
> 
> If you do not have pserver running, then checking to see if it will
> respond seems rather pointless.
> 
> If you use the -t switch
> 
>    cvs -t -d :ext:address@hidden:/path/to/repository checkout foo
> 
> you will see it is trying to do (if you are not 100% certain that it is
> running ssh, using the -t switch will help you determine if that is what
> is happening or not):
> 
>    ${CVS_RSH:-rsh} -l username xxx.xxx.xxx.xxx cvs server
> 
> with the ${CVS_RSH} expanded to either the default "rsh" or to the
> exported value of the variable ("ssh" in your case right?).
> 
> cvs expects that the Remote Shell transport will be eight-bit clean and
> will not inject any extraneous text into the transfer by your shell init
> file running 'fortune' or 'stty' or something like that.
> 
>       Enjoy!
>       -- Mark
> 
> > Ron
> > 
> > On Thu, 2003-04-10 at 01:36, Mark D. Baushke wrote:
> > > eafritz <address@hidden> writes:
> > > 
> > > > Help!
> > > > 
> > > > I've gotten this to work once before, and can't figure out why I 
> > > > can't do it again...  I'm trying to use cvs to get to a repository on 
> > > > a server that will only allow ssh connections (no xinetd etc, just 
> > > > sshd).  I have setup my ssh connection with public/private keys and 
> > > > use ssh-agent/ssh-add to prepare.  I know this is correct because I 
> > > > can run ssh -l user host and connect no problem (does not require any 
> > > > passwords etc)
> > > > 
> > > > But...
> > > > When I use CVS it just hangs... the security log on the server 
> > > > doesn't even show any activity for the ssh server.  eventually my cvs 
> > > > command comes back with the error:
> > > > 
> > > > ###.###.###.###: Connection refused
> > > > cvs [checkout aborted]: end of file from server (consult above 
> > > > messages if any)
> > > > 
> > > > (where ###.###.###.### is the ip of my cvs server)
> > > > 
> > > > my CVSROOT is set to:
> > > > 
> > > > :ext:address@hidden:/path/to/repository
> > > > 
> > > > and I've verified the settings there about five hundered times.
> > > > 
> > > > I've also got CVS_RSH="ssh"
> > > > 
> > > > Anybody got any clues???  I just don't understand why ssh would work 
> > > > fine but cvs wouldn't :(
> > > 
> > > The most likely cause is that you have someing in your .profile, .bashrc
> > > or .cshrc file (depnding on your shell) that is generating output. If
> > > you use a command like
> > > 
> > >    ssh -l username ###.###.###.### date
> > > 
> > > do you get JUST the date output? If you get anything else, it can cause
> > > problems with the interaction to the remote cvs server.
> > > 
> > >   Good luck,
> > >   -- Mark
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]