Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to secure CVS communication with ssh tunneling. I've made a chroot jail, with help of cvsd and i'm trying to use ssh tunneling with help of a ssh key. In general the procedure is this:
1. make user 'cvsd' who has r/w access to the CVS repository
2. set 'cvsd's shell to /bin/bash (or some proper shell) in /etc/passwd
3. set 'cvsd's password to * in /etc/shadow
4. have all developers who are using the CVS generate an ssh key
5. put an entry in 'cvsd's /home/cvsd/.ssh/authorized_keys2 file that looks like:
The client, which wants to connect to the server must fist set CVS_RSH variable to /usr/bin/ssh (or where his ssh resides) and uses :ext for cvs connection, e.g. cvs -d :ext:user@host:/cvsroot checkout module_name
The problem is, the ssh connection to the server does not use the standard port 22 for connection, but port number 22022. How can i now connect to the server? Is there a ssh's system variable or a config file i should set to change the default port number?
Unfortunately this is not working, because i use ssh for initial connection, not cvs. CVS traffic (using pserver protocol) is transferred throughout the ssh tunnel. I have to configure ssh somehow, not cvs. The external cvs shell is set to ssh, not to rsh (export CVS_RSH=ssh). I even tried to add ssh -p 22022 to CVS_RSH variable, but it's not working, i get this error msg:
cvs [checkout aborted]: cannot exec /usr/bin/ssh -p 22022: No such file or directory
(using the default ssh port 22 works though).
Maybe there is a similar variable like CVS_CLIENT_PORT for ssh??
I got one solution, i put this line into ~/.ssh/config:
Port 22022
Better confine that to the host-specific section of config or it'll be taken as default:
Host something.something
Port 22022
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.