Skip to content

Git SSH Private Key Contents and New Line (LF) #1209

Description

@sean-freeman

Describe the bug
Git SSH Private Key Contents, must include New Line (LF) at the end

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Storage - Git'
  2. Click on 'B - SSH Private Key Contents'
  3. Paste SSH Private Key's contents ending with -----END OPENSSH PRIVATE KEY----- without New Line at end
  4. See error
Load key "/home/vcap/app/wiki/data/secure/git-ssh.pem": invalid format
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. error: Could not fetch origin

Expected behavior
Git: Last synchronization a few seconds ago

Additional context
Minor bug, but prohibitive to new users who will not find what they have done wrong when following the instructions. In addition, documents and UI do not make it clear to switch "SSH Private Key Mode" so this minor bug would likely prohibit an initial setup.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcontrib-easyEasy dev difficulty for contribution

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions