[Top][All Lists]

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

Re: ssh on a non-standard port.

From: Todd Denniston
Subject: Re: ssh on a non-standard port.
Date: Wed, 14 Feb 2007 15:23:30 -0600
User-agent: Thunderbird (X11/20060909)

C.G.Senthilkumar. wrote:

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
$ 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.

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.

Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter

reply via email to

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