# None of the supplied SSH keys matched a known key for user \`bob\`

**URL:** <https://forums.balena.io/t/none-of-the-supplied-ssh-keys-matched-a-known-key-for-user-bob/2013>\
**Category:** Product support\
**Tags:** ssh\
**Created:** [October 18, 2017, 7:23pm UTC](https://forums.balena.io/t/none-of-the-supplied-ssh-keys-matched-a-known-key-for-user-bob/2013 "2017-10-18T19:23:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bob](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@bob](https://forums.balena.io/u/bob)\
**Post date:** [October 18, 2017, 7:23pm UTC](https://forums.balena.io/t/none-of-the-supplied-ssh-keys-matched-a-known-key-for-user-bob/2013/1 "2017-10-18T19:23:30Z")

</div>

Hello. I’ve been trying to push a C file to an application. I was able to do this yesterday, but today I decided to create a new repository, rather than try and push from a subdirectory in an existing repository that has a lot of other code in it.

I created a new repository on github, and can push and pull code to/from that repository.

However, I now get this SSH error when I try and push it to my resin application.

\> git remote add resin-OTAUpdates [bob@git.resin.io](mailto:bob@git.resin.io):bob/otaupdates.git  
\> git push resin-OTAUpdates master

The resin remote does show up in my list of git remotes when I run:  
\> git remote -v

I can push and pull to github, but it seems resin no longer likes my SSH key.

I’ve deleted and imported the SSH key from github. Still, resin rejects it.

Is this a problem because I’ve previously pushed to this resin application from a different git repository? Do I need to create a new application?

---

<div class="post-metadata">

**Author:** ![bob](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@bob](https://forums.balena.io/u/bob)\
**Post date:** [October 18, 2017, 7:24pm UTC](https://forums.balena.io/t/none-of-the-supplied-ssh-keys-matched-a-known-key-for-user-bob/2013/3 "2017-10-18T19:24:57Z")

</div>

FYI, I’ve added an SSH config file, per the suggestion of another post. Still no love.

\> more config  
Host [githumb.com](http://githumb.com)  
IdentityFile .ssh/id\_rsa  
Host [git.resin.io](http://git.resin.io)  
IdentityFile .ssh/id\_rsa

---

<div class="post-metadata">

**Author:** ![bob](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@bob](https://forums.balena.io/u/bob)\
**Post date:** [October 18, 2017, 8:46pm UTC](https://forums.balena.io/t/none-of-the-supplied-ssh-keys-matched-a-known-key-for-user-bob/2013/4 "2017-10-18T20:46:12Z")

</div>

Creating a new application has solved the problem. I can see why “polluting” an application’s git repository with unrelated code causes a problem, but I don’t know why this would create an SSH key problem.

---

<div class="post-metadata">

**Author:** ![\_Page](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/_page/32/22_2.png) [@\_Page](https://forums.balena.io/u/_Page)\
**Post date:** [October 18, 2017, 8:53pm UTC](https://forums.balena.io/t/none-of-the-supplied-ssh-keys-matched-a-known-key-for-user-bob/2013/5 "2017-10-18T20:53:19Z")

</div>

Hey @bob, can you provide the full error message you’re receiving? I would expect you to see an error along the lines of “non-fastforward push was rejected” due to having previously pushed code to that application, however I would not expect to see any error about the ssh key. For the error I’d expect due to having previously pushed commits then the solution is to instead use `git push resin-OTAUpdates master -f` in order to force overwriting the existing commits

---

<div class="post-metadata">

**Author:** ![bob](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@bob](https://forums.balena.io/u/bob)\
**Post date:** [October 18, 2017, 9:16pm UTC](https://forums.balena.io/t/none-of-the-supplied-ssh-keys-matched-a-known-key-for-user-bob/2013/6 "2017-10-18T21:16:48Z")

</div>

Sure; here’s the entire error message. I agree, the SSH key problem is what’s really confusing here.

> git push resin-OTAUpdates master  
> no such identity: .ssh/id\_rsa: No such file or directory

```
############################################################################

None of the supplied SSH keys matched a known key for user `bob`

Known ssh key fingerprints for `bob`:
	* 89e9edf82d9487ef465ffbdc0799b707

Please make sure you've configured your keys correctly.
http://docs.resin.io/getting-started/#adding-an-ssh-key

############################################################################

```

Permission denied (publickey,keyboard-interactive).  
fatal: Could not read from remote repository.

Please make sure you have the correct access rights  
and the repository exists.

---

<div class="post-metadata">

**Author:** ![\_Page](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/_page/32/22_2.png) [@\_Page](https://forums.balena.io/u/_Page)\
**Post date:** [October 18, 2017, 9:22pm UTC](https://forums.balena.io/t/none-of-the-supplied-ssh-keys-matched-a-known-key-for-user-bob/2013/7 "2017-10-18T21:22:37Z")

</div>

Ah, in that case your `.ssh/config` file is probably the issue, it’s using a relative path which fails when you try to push the resin app, as evidenced by the `no such identity: .ssh/id_rsa: No such file or directory` part (it works for `github.com` as the config file is for `githumb.com`). If you either remove that config or change the `.ssh/id_rsa` to `~/.ssh/id_rsa` then the correct key should start being used

---

<div class="post-metadata">

**Author:** ![bob](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@bob](https://forums.balena.io/u/bob)\
**Post date:** [October 18, 2017, 9:59pm UTC](https://forums.balena.io/t/none-of-the-supplied-ssh-keys-matched-a-known-key-for-user-bob/2013/8 "2017-10-18T21:59:25Z")

</div>

Thanks \_Page. I didn’t originally have a config file when I got the error. I added it, but clearly had a typo. I should’ve caught that. Thanks.
