How to configure JFrog CLI to work with SSH authentication?

Kfir Avraham
2018-07-06 14:11

In order to configure the CLI client and Artifactory to work with SSH Authentication please perform the following steps:
  1. Upload the private and public keys to Artifactory – in Artifactory UI navigate to the Admin Tab → Security | SSH Server, Enable SSH Authentication, fill in the required fields and upload the keys:

Please refer to this link for more information.
  1. Enter the SSH public key in the SSH Public Key (RSA) field in the User Profile in Artifactory – In Artifactory UI click on the user name and on “Edit Profile” (top right corner) and add the public key in SSH filed.

            Please refer to this link for more information.

  1. If you are using Self-signed Certificates, place the certificates in the “security” directory (located in ‘.jfrog’ directory under your user home directory), in case this directory does not exists, please create it.
            For more information please refer to this link.
  1. Configure the CLI client – this can be done for example by the following command $jfrog rt c.
           $ jfrog rt c
           Artifactory URL: ssh://
           Artifactory server ID [Default-Server]:
           SSH key file path: ~/.ssh/id_rsa
          For more information and other options please refer to this link.


  1. Test the configuration with a CLI command.
           For example:
           $ jfrog rt u test.txt "generic-local/"
           [Info] Performing SSH authentication…
           [Info] SSH authentication successful.
           [Info] [Thread 2] Uploading artifact: test.txt
           [Info] Uploaded 1 artifacts.