ARTIFACTORY: How To Increase Git LFS Bearer Token Expiration Time when using SSH

ARTIFACTORY: How To Increase Git LFS Bearer Token Expiration Time when using SSH

AuthorFullName__c
Kayvan Sofastaee
articleNumber
000006116
ft:sourceType
Salesforce
FirstPublishedDate
2024-06-05T07:05:08Z
lastModifiedDate
2024-06-05
VersionNumber
1

When using Git LFS to pull large files, a dynamically generated token is used to authenticate the download of LFS objects. However, this token is only valid for one hour. Teams dealing with LFS objects exceeding 100GB in size sometimes experience download failures when the operation extends beyond the token's expiration time. This behavior manifests as an authentication error, typically noted by the message 'batch response: Authentication required: Authorization error: https://....' Although using HTTPS with credentials in the Git LFS URL serves as a workaround, a preferable solution would be to use a method to extend the token's validity period, ensuring uninterrupted downloads, especially when accessing files through a Public or Private network.