Access to github using svn bridge and ssh key

I’ve always used the svn interface to GitHub as much as possible, because my day job version control is all Subversion, so that’s the workflow I’m used to.

However, I just got the email saying that password access is going away, which will break the svn https checkout.

I added an ssh key to my GitHub account, and told putty where my key is. I’ve run the test of using putty to prove that my key can access GitHub without difficulty.

However, I haven’t figured out how to use the svn bridge over ssh for GitHub. At work, when we access our work svn server with ssh key, I just use the svn+ssh://... protocol, but when I tried that for my GitHub repo, it wouldn’t connect. The SSH tab on the code download button doesn’t give a valid svn-style URL.

I haven’t been able to find an official document for how to make the ssh key using the svn bridge, and my searches elsewhere haven’t found anything yet.

Is there an official or unofficial guide for how to get the ssh key working using the svn bridge to GitHub?

:wave: Welcome!

If it was working perfectly well using a password, you could try using a personal access token. This should work roughly the same way as a password (with https), but doesn’t grant full account access.

1 Like

Thanks, that was quite simple to set up and get working.

1 Like

Hi There!
Glad to know you’ve managed to solve @pryrt issue.
However, it’d be worth knowing how to access svn with ssh. According to docs, it should be straightforward. copy and use ssh link which is available under the code dropdown button. However, as @pryrt mentioned in the original message, it does not work for me as well.
Any thoughts?

Best regards!

Hi and :wave: Welcome!

I’m afraid our docs are quite specific that we only support svn clients via HTTPS:

GitHub supports Subversion clients via the HTTPS protocol. We use a Subversion bridge to communicate svn commands to GitHub.

What about #3 ?

To clone the repository using an SSH key, including a certificate issued by your organization’s SSH certificate authority, click Use SSH

Yup, that’s confusing. I’ve had a look at the document, which is open source (there’s a link to it at the bottom of the page).

It looks like this is a reusable snippet that is inserted everywhere that we tell folks how to clone a repository. In this case, it shouldn’t be used, because we have to use HTTPS with svn.

I’ll open an issue to get that fixed. Apologies for the confusion.

No worries. We’ll handle it another way then. Thanks for such a quick reply and clarifications :muscle: .

1 Like