Authenticate Git LFS with SSH

JFrog Artifactory Documentation

JFrog Artifactory
Content Type
User Guide

Artifactory supports authenticating your Git LFS client via SSH for Self Hosted instances.

Not Supported for JFrog Cloud

Git LFS with SSH Authentication is not supported for JFrog Cloud customers.

To authenticate yourself via SSH when using the Git LFS client, execute the following steps:

  1. Make sure Artifactory is properly configured for SSH as described in the SSH Server Configuration.

  2. Upload your SSH Public Key in the SSH section of your user profileas described in Configuring User Authentication.

  3. Configure the Git LFS client as follows:

    1. Update the known_hosts file with the Artifactory server public key. This file is located under ~/.ssh/known_hosts (and there is also a system-wide file under /etc/ssh/known_hosts). This should take the following format:

      [<server_custom_base_URL>]:<server_port> <content of the Artifactory server public ssh key>

      For example,

      []:1339 ssh-rsa AAAAB3Nza...PC0GuTJT9TlaYD 
    2. Update your .lfsconfig file at the repository level (not the global level) as follows:


      For example,

      url = "ssh://"


      While the $USERNAME field is not mandatory, it is good practice to add it for self-reference.