Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A web server that hosts a Subversion repository can be configured to request a username and password after the authentication with an SSL client certificate. For the information on the settings that you can use to specify a username and password, see the Specifying a username and a password section.

The other way to specify a path to an SSL client certificate and an optional passphrase is the the Subversion  servers file that is located in the default Subversion configuration directory. (Add link to ⚓)

Code Block
 [global]
 ssl-client-cert-file = PATH
 ssl-client-cert-password = passphrase

In this case, no additional settings are required in the [auth "default"] section of the SubGit configuration file. SubGit refers to the servers file for an SSL certificate to log in to a Subversion repository.

If a web server that hosts a Subversion repository along with an SSL client certificate requires a username and a password for authentication, SubGit refers to the servers configuration file for an SSL certificate and uses the Subversion credentials cache to log in to a Subversion repository. To specify the settings that fetch the Subversion credentials cache, see the Using the Subversion credentials cache section.

Using the SSH key-based authentication

If you want to use the SSH key-based authentication to access a Subversion repository, specify the following authentication settings:

Code Block
[auth "default"]
sshKeyFile = PATH
sshKeyFilePassphrase = passphrase

The sshKeyFile setting defines a path to the file that contains the SSH private key to log in to a Subversion repository. The path can be either absolute or relative to the Git repository.

Note
Make sure that a SubGit user is granted the reading permissions for an SSH private key file.


The sshKeyFilePassphrase setting specifies a passphrase that can be optionally used to protect the SSH private key.
SubGit also requires a Subversion username when using the SSH key-based authentication. In this case, the username can be specified in one of the following settings:

Code Block
[auth "default"]
userName = user
Code Block
[svn]
url = vn+ssh://user@svn.example.com/svn/repository/project