Hugging Face Discontinues Git Password Authentication
Key point
To strengthen security, Hugging Face is discontinuing password authentication for Git and requiring the use of tokens or SSH keys instead.
Details
To strengthen security, starting October 1, 2023, Hugging Face will no longer allow the existing password authentication method for Git-based interactions with the Hub.
Users must instead use a Personal Access Token (PAT) or an SSH key. Tokens and SSH keys offer the advantage of being more secure, unique, and revocable at any time compared to traditional passwords.
How to respond:
- Using an access token: After generating a token, update the remote repository URL with the command
git remote set-url origin https://<user_name>:<token>@huggingface.co/<repo_path>. - Using an SSH key: Generate an SSH key, register it to your account, and then authenticate using the format
[email protected]:<repo_path>.
Users who previously relied on password-based authentication must switch to one of these authentication methods before the deadline to avoid disruption to their Git operations.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.