Skip to content

Support non-GitHub hosted git repositories connection with ppk #2859

Closed

Description

@laukstein

SourceTree supports connection with ppk

grabilla em4836

while GitHub desktop/windows will throw "invalid format":

Load key "/.ssh/id_rsa.ppk": invalid format
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.

(The error was parsed as 2: Authentication failed. You may not have permission to access the repository. Open options and verify that you're signed in with an account that has permission to access this repository.)
2017-09-19T19:12:02.433Z - info: [ui] Executing getStatus: git status --untracked-files=all --branch --porcelain=2 -z (took 1.164s)
2017-09-19T21:00:59.688Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 1.716s)
2017-09-19T21:00:59.692Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.

Load key "/.ssh/id_rsa.pub": invalid format
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.

(The error was parsed as 2: Authentication failed. You may not have permission to access the repository. Open options and verify that you're signed in with an account that has permission to access this repository.)
2017-09-19T21:04:29.701Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.

Activity

  1. shiftkey commented on Sep 24, 2017

    @shiftkey
    Member

    I think the .ppk file is PuTTY-specific, right? Are there particular reasons why you prefer this setup over OpenSSH?

  2. laukstein commented on Sep 25, 2017

    @laukstein
    Author

    @shiftkey, yes, it is is PuTTY-specific.
    Key over OpenSSH returns the same error. My .ppk is created with password, its format looks like

    PuTTY-User-Key-File-2: ssh-rsa
    Encryption: aes256-cbc
    Comment: imported-openssh-key
    Public-Lines: 6
    ...
    Private-Lines: 14
    ...
    Private-MAC: ...
    
  3. shiftkey commented on Sep 26, 2017

    @shiftkey
    Member

    I think we need to work on our SSH support more generally as it definitely doesn't cover this scenario. I've been tracking this and others over in #2579, so please follow along with that issue.

  4. locked as resolved and limited conversation to collaborators on Jul 20, 2018
  5. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions