Skip to content

[Bug]: Setting up Obsidian Git on a new machine, trouble with "Please make sure you have the correct access rights and the repository exists." #346

Closed
@ReaderGuy42

Description

Describe the bug

I try this git push -u origin main and get the error below. I'm trying to sync a second machine to my repo.

I've added a new SSH key to my new machine and github (I think that worked) but can't figure out what to do now.

This isn't technically in the plugin yet, since I haven't been able to get that far. Can you still help me with this?

Relevant errors (if available)

This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
 git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

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

Steps to reproduce

Try pushing to remote. Get error

Expected Behavior

No response

Addition context

No response

Operating system

Linux

Plugin version

2.8.0

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions