We need to add the keys in the Artifactory Key Management in order to configure Artifactory to use SSH Authentication. Perform the following steps to do the same.
- Go to Artifactory UI => Administration => Artifactory => Security => Keys Management => SSH Keys.
- Enable the SSH Authentication using the check box.
- Default port 1339 will be pre selected. Configure as per the requirement.
- For the Custom Base URL field, we will need to configure the Custom Base URL by adding the URL at Artifactory UI => Administration => General => Settings => Custom Base URL. “http(s)://artifactoryHost:port”
- Now we need to add the Public Key and the Private key in the respective fields.
- Save the configuration.