Saturday, 3 April 2021

[TortoiseSVN] SSH public key access to repository

I only know this rather tedious variant to connect over ssh with public key authentication.

  1.  Install TortoiseSVN and PuTTY.
  2. Create a public key/private key pair in ppk format if you have not got one already; best with PuTTYgen. If you have an OpenSSH key pair, you can convert the key to ppk format with PuTTYgen also.
  3. Place the public key onto the server. It depends on the server in which format. As I usually work with *nix servers, I have not got to use anything but OpenSSH format key so fer.
  4. Create a connection in PuTTY for SSH using public key authentication. Please be aware that the connection name must NOT contain @ as this is a delimiter character for TortoiseSVN (and presumably other software too) separating a user name from the connection name or more general a server name.
  5. This should be not needed but in doubt: Have Pageant (part of PuTTY) running with your key having been imported.
  6. Call the TortoiseSVN commands from the file explorer context menu, example for "SVN checkout" and SourceForge:
    1. The code page provides the following command line statement: svn checkout --username=thiemo svn+ssh://thiemo@svn.code.sf.net/p/pg-scd/svn/ pg-scd-svn
    2. Change it to svn+ssh://thiemo_sf/p/pg-scd/svn/ for the URL of repository field of the dialogue.
    3. thiemo_sf is the name of the PuTTY connection. If the user of the connection is not the same as one on the server (cannot think of a reason how this could happen, but there you go) prepend other_user_name@, where other_user_name is to be replace by the actual name like john.

No comments:

Post a Comment

[git] Create a local branch from another branch

From the active branch git checkout -b <LOCAL_BRANCH> From a donator branch git checkout -b <LOCAL_BRANCH> <DONATING_BRANCH...