# SSH Authentication Issue: Permission Denied (Publickey)

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fssh-authentication-issue-permission-denied-publickey%2F132792%3E%5C
**Category:** Spaces\
**Created:** [December 23, 2024, 5:54pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fssh-authentication-issue-permission-denied-publickey%2F132792 "2024-12-23T17:54:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crane11](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/crane11/32/38037_2.png) [@crane11](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fcrane11)%5C
**Post date:** [December 23, 2024, 5:54pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fssh-authentication-issue-permission-denied-publickey%2F132792%2F1 "2024-12-23T17:54:27Z")

</div>

Hello Hugging Face Community,

I’m encountering an issue while attempting to connect to my Hugging Face Space via SSH. Despite following the setup instructions and ensuring my SSH key is uploaded, I receive the error:

```auto
Permission denied (publickey).

```

### Steps I Have Taken:

1. **Generated SSH Key** :

2. **Uploaded Public Key** :

3. **Verified Key with SSH Agent** :

4. **Configured SSH Client** :

5. **Tested SSH Connection** :

6. **Re-uploaded Key** :

7. **Verified Username** :

### Additional Details:

- I am using OpenSSH for Windows, version 9.5p1.
- My local SSH client can read the configuration file and correctly offers the key during authentication.

### Request for Assistance:

I believe my public key is correctly configured locally and on the Hugging Face account, but I am still unable to authenticate. Could someone help me identify what might be going wrong? Is there something specific I need to verify on my Hugging Face account, or is there a known issue I may be missing?

Any guidance would be greatly appreciated!
