{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreih6wyrnodr7oq24kwuv4av2fvx6defdflh5pd45tl2iouxmxuhs7i",
    "uri": "at://did:plc:pgryn3ephfd2xgft23qokfzt/app.bsky.feed.post/3mhpxxffz4xa2"
  },
  "path": "/t/authentication-error-when-pushing-code-to-new-space/174542#post_1",
  "publishedAt": "2026-03-23T07:42:07.000Z",
  "site": "https://discuss.huggingface.co",
  "textContent": "Issue: I am unable to push to newely created space.\nOS: Windows 11\n\nI have created a space here git@hf.co:spaces/dennisnlt/mcp-sentiment. I have added the appropriate ssh keys to my account.\n\nI have verified the following step and correctly receive my username:\n\ncommand “ssh -T git@hf.co”\nHi dennisnlt, welcome to Hugging Face.\n\nGIT CONFIG:\n[core]\nrepositoryformatversion = 0\nfilemode = false\nbare = false\nlogallrefupdates = true\nsymlinks = false\nignorecase = true\n[remote “origin”]\nurl = git@hf.co:spaces/dennisnlt/mcp-sentiment\nfetch = +refs/heads/_:refs/remotes/origin/_\n[branch “main”]\nremote = origin\nmerge = refs/heads/main\nvscode-merge-base = origin/main\n\nError from “git push”:\n\n** WARNING: connection is not using a post-quantum key exchange algorithm.\n** This session may be vulnerable to “store now, decrypt later” attacks.\n** The server may need to be upgraded. See https://openssh.com/pq.html\nremote:\nremote: ========================================================================\nremote:\nremote: ERROR: This action requires authentication.\nMake sure your SSH public key is linked with your profile on huggingface.co.\nSee https://huggingface.co/settings/keys .\n\nremote:\nremote: ========================================================================\nremote:\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n\nAny help would be greatly appreciated.\n\n**Update**\n\nApparently git on windows can use its own ssh…\n\nFix ( Force Git to use the Windows system client ):\ngit config --global core.sshCommand “C:/Windows/System32/OpenSSH/ssh.exe”",
  "title": "Authentication Error When Pushing Code to New Space"
}