?
Solved

Tunneling CVS

Posted on 2004-04-16
4
Medium Priority
?
302 Views
Last Modified: 2010-05-18
Hi

I will work from Linux and Windows and access a Linux host with SSH server on. Also there is an CVS server on it. WOuld it be possible to configure the server and clients so that I can access it through SSH with freeware products? How and with what?
0
Comment
Question by:mdoland
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 4

Expert Comment

by:john-at-7fff
ID: 10843290
Absolutely.

This gets fairly complicated fast. You will need to do three things: get an ssh client on Windows; set up public/private keys so that you can ssh into the Linux box without having to enter your password everytime; and then you would either have to use the raw cvs client, or a front-end such as WinCVS (http://www.wincvs.org/) which would require additional configuration.

Here's what you need to do:

1. Install Cygwin (http://www.cygwin.com/) on the Windows machine. During the install, you would need to ensure that you get the openssh support. This will get you ssh on Windows.

2. Set up your private/public key combination. It would look something like the following:

In this scenario, 192.168.1.100 is the remote (Linux) system, and yourid
is the username there.

We are creating the private key there.

(a) On the Windows system, enter

      ssh yourid@192.168.1.100

you will get a prompt asking about continuing to connect. Say yes.

Enter your password

(b) on the remote system, type

      (You will see a dot before ssh in a number of places -- that's one word, .ssh)

      ssh-keygen -t rsa
            When asked about the directory location, take the default (return)
            Press return twice (no passphrase -- important for CVS)
      cp .ssh/id_rsa.pub .ssh/authorized_keys
      logout

(b) Now you are back at your Windows computer's DOS prompt. Enter the following:

      bash
      cd
      scp yourid@192.168.1.100:.ssh/id_rsa .ssh/id_rsa

You will be prompted for your password. Enter it.

(c) Now the best part:

      Exit from bash with control D
      ssh yourid@192.168.1.100

You should get in without being prompted by a password.

If you get that far, I can tell you about using CVS via this means.
0
 

Author Comment

by:mdoland
ID: 10843367
I intend to use wincvs.
0
 
LVL 4

Expert Comment

by:john-at-7fff
ID: 10843415
OK -- Well, you will still need to get ssh going on your Windows machine. WinCVS will use ssh to communicate w/ your Linux box.

Installing Cygwin also means that you will have a suite of Linux-style tools on your Windows machine, which in the long run will make you very happy.
0
 
LVL 4

Accepted Solution

by:
john-at-7fff earned 500 total points
ID: 10843427
If you want to avoid Cygwin, another way to do it is to use a free ssh client called putty.

Here are instructions on setting up WinCVS with Putty:

http://www.devguy.com/fp/cfgmgmt/cvs/cvs_ssh.htm

0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Justin
In light of the WannaCry ransomware attack that affected millions of Windows machines, you might wonder if your Mac needs protecting. Yes, it does and here is how to do it.
In this blog we highlight approaches to managed security as a service.  We also look into ConnectWise’s value in aiding MSPs’ security management and indicate why critical alerting is a necessary integration.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question