Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to read private key file #11791

Closed
cyberduck opened this issue Sep 3, 2021 · 5 comments
Closed

Unable to read private key file #11791

cyberduck opened this issue Sep 3, 2021 · 5 comments
Assignees
Labels
bug triton worksforme
Milestone

Comments

@cyberduck
Copy link
Collaborator

@cyberduck cyberduck commented Sep 3, 2021

1749ca4 created the issue

Good day,

On Windows and MacOS version: 7.10.2.35432 the Manta Profile cannot read private key files.

Unable to read private key files from path: /Users/smith/.ssh/id_rsa.

[[Image(https://us-east-storage.solutions.iqvia.com/bruce_dev/public/error1.png, 400px)]]
[[Image(https://us-east-storage.solutions.iqvia.com/bruce_dev/public/error2.png, 400px)]]

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Sep 7, 2021

@dkocher commented

Can you confirm the private key is password protected.

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Sep 7, 2021

1749ca4 commented

dkocher,

The private key is not password protected.

I believe I found the issue though. It appears that the error only occurs with openssh formated private keys. (https://coolaj86.com/articles/the-openssh-private-key-format/)

After running "ssh-keygen -p -m PEM -f ~/.ssh/id_rsa" we returned to the traditional PEM format which begins with "-----BEGIN RSA PRIVATE KEY-----" instead of "-----BEGIN OPENSSH PRIVATE KEY-----"

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Sep 7, 2021

1749ca4 commented

I guess I should have read,

OpenSSH Key Format Interoperability
OpenSSH private keys of type rsa, dsa, ecdsa and ed25519 (in OpenSSLPEM format) are supported. The new OpenSSH format (openssh-key-v1) is only supported for ecdsa and ed25519.

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Sep 7, 2021

@dkocher commented

Replying to [comment:8 Smithx10]:

I guess I should have read,

OpenSSH Key Format Interoperability
OpenSSH private keys of type rsa, dsa, ecdsa and ed25519 (in OpenSSLPEM format) are supported. The new OpenSSH format (openssh-key-v1) is only supported for ecdsa and ed25519.

In OpenSSH Key Format Interoperability

@cyberduck
Copy link
Collaborator Author

@cyberduck cyberduck commented Sep 8, 2021

@dkocher commented

Replying to [comment:5 dkocher]:

Can you confirm the private key is password protected.
In 817c16c.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug triton worksforme
Projects
None yet
Development

No branches or pull requests

2 participants