info-cvs
[Top][All Lists]
Advanced

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

Re: ssh on a non-standard port.


From: Jason Brown
Subject: Re: ssh on a non-standard port.
Date: Wed, 14 Feb 2007 14:46:01 -0700
User-agent: KMail/1.5.1

Try using your ssh_config ...unless for some reason you want the full system 
name in the path...I've been doing this forever.

 in ~/.ssh/config
"""
Host foo
User bar
Hostname foo.bar.com
Port 2999
"""

export CVS_RSH=ssh
export CVS_ROOT=:ext:foo:/home/cheetanc/repository

-Jason-


On Wednesday 14 February 2007 14:23, Todd Denniston wrote:
> C.G.Senthilkumar. wrote:
> > Hi,
> >
> > I'm tunneling my cvs through ssh. However, ssh on the cvsserver runs on
> > a non-standard port(2999 not port 22).
> >
> > Settin CVS_RSH doesn't work. I get the following error upon a cvs status
> > check.
> > $ export CVS_RSH="ssh -p 2999"
> > $ cvs -d :ext:address@hidden:/home/cheetanc/repository status file1
> > cvs [status aborted]: cannot exec ssh -p31899: No such file or directory
> > cvs [status aborted]: received broken pipe signal
> >
> > There are no firewall issues. Plain ssh login such as:
> > $ ssh -p 2999 cvsserver
> > gives me a passowrd prompt and I'm able to login.
> >
> > Sure, this seems like a trivial question, but the archives don't turn up
> > anything. Both client and server machines run linux.
> >
> > Any help will be appreciated.
>
> suggestions:
> 1) man ssh_config
>    [and use that to interpret the following command]
> 2) echo "#setup cvsserver to use port 2999" >> ~/.ssh/config
>   echo -e"Host cvsserver\n\tPort 2999" >> ~/.ssh/config
>
> [another method, assumes bash is your shell]
> 3) echo "ssh -p 2999 \$@" > ~/myssh;chmod +x ~/myssh;
>     export CVS_RSH=~/myssh
>
> There may be better methods out there, but I think items 1 & 2 are the best
> way I know of.





reply via email to

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