Saturday Sep 12, 2009

Kenai.com SSH Source Repository Access Tip

Projects hosted on Kenai.com can have three different kinds of source code repositories: git, mercurial, and subversion. With git and mercurial, developers often use ssh for access. However, this requires at least one public key to be uploaded to the site. If you are having problems accessing a repository using ssh, you can test to see if your uploaded key is correct by invoking ssh from the command line on the host with the corresponding private key. Substitute your own Kenai.com username in the examples below. My username is edwingo and the following means a successful public key upload:

$ ssh edwingo@kenai.com
Hi, edwingo! You have successfully authenticated, but we do not provide shell access.
Connection to kenai.com closed.

If you receive some other kind of error, such as:

Permission denied (publickey,keyboard-interactive)

please check that your public key has been uploaded correctly to the SSH keys tab of your profile.

This entry was updated on 2009-12-09 to reflect the improved SSH keys tab user interface. (Soon subversion will also be accessible via ssh.)

Tuesday Jun 26, 2007

Firewalls and Accessing Source Repositories

This article applies to companies that have firewall configurations that are similar to Sun's. Many companies such as the one I work for (Sun) have a firewall which presents problems with accessing source code repositories on the Internet. This documents the approach I use.

To elaborate further, it works because we have Direct Internet Access (DIA) now. What I do is use the public repository hostname in my trees, like: CVSROOT=:pserver:USER@cvs.netbeans.org:/cvs. I handle the three separate cases this way:

  1. In the office on SWAN, it works because of DIA
  2. Off SWAN, it works because it's the real hostname
  3. VPN on SWAN, I change the /etc/hosts file so that it points to the internal proxy.
See this link for more information.

About

edwingo

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today