Skip to content

Support Ed25519 SSH keys for SFTP external storage authentication #21373

Description

@tigernero79

I currently manage several nextcloud v19 and v18 distributions on which I have activated the module for storing external folders, and often I find myself managing this module with rsa key authentication, it is possible to also give it authentication with public / private signature certificates also with elliptic curve certificates see keys ed25519? currently, as can also be seen from the attached authentication via sftp, it is possible only by using private or public key rsa non ed25519 or ecdsa

Immagine

Activity

  1. kesselb commented on Jun 11, 2020

    @kesselb
    Contributor

    You tried to use a certificate ed25519 and it does not work?

  2. tigernero79 commented on Jun 11, 2020

    @tigernero79
    Author

    nextcloud itself generates a public key that I have to copy to a file and then feed it to the ssh configuration file, and that key it generates is only rsa and not ed25519

  3. kesselb commented on Jun 11, 2020

    @kesselb
    Contributor

    cc @nextcloud/security

  4. nickvergessen commented on Jun 12, 2020

    @nickvergessen
    Member

    Doesn't look like there are related php modules available by default

  5. kesselb commented on Jun 12, 2020

    @kesselb
    Contributor

    We have to wait for phpseclib/phpseclib#1309 which is planned for phpseclib 3.

  6. tigernero79 commented on Jun 12, 2020

    @tigernero79
    Author

    in fact it could also leave rsa as valid certificates for ssh, this would lead me to have sftp folders also in active localhost. but i have everything in ed25519 on my server and you wanted to avoid reusing rsa. the parameters that I have in ssh server are the following:

    HostKeyAlgorithms ssh-ed25519,sk-ssh-ed25519@openssh.com,ecdsa-sha2-nistp256,sk-ecdsa-sha2-nistp256@openssh.com

    there are also ed25519-sk for hw tokens, but I don't want so much it would be enough for me to recognize nectcloud the ed25519 certificates for sftp protocol

  7. kesselb commented on Jun 12, 2020

    @kesselb
    Contributor

    The library used to generated the rsa keys does not support ed25519 yet. We have to wait for an update.

    A workaround could be to use "RSA private key" and generate the required keys yourself.

  8. tigernero79 commented on Jun 12, 2020

    @tigernero79
    Author

    you mean I can use the rsa private key entry to put the private key ed25519 in it? or anyway I have to use a private rsa key?

  9. kesselb commented on Jun 12, 2020

    @kesselb
    Contributor

    rsa private key entry to put the private key ed25519 in it

    I think so. For any further questions https://help.nextcloud.com.

  10. Constey commented on Jan 27, 2021

    @Constey

    There is a new version of phpseclib in version 3.0 that supports those new ciphers as of: https://github.com/phpseclib/phpseclib / https://github.com/phpseclib/phpseclib/releases
    Is there any schedule when this gets updated?

  11. nickvergessen commented on Jan 27, 2021

    @nickvergessen
    Member

    We updated to 2.0.30 recently:
    nextcloud/3rdparty#592

    3.0 seems to support php 5.6.1 or later so when there is no other lib depending on it anyone could look into an update

  12. szaimen commented on Jun 22, 2021

    @szaimen
    Contributor

    I suppose this issue is still valid?

  13. 20 remaining items

  14. guerby commented on Mar 25, 2025

    @guerby

    I checked and not yet done as of 31.0.2

    PR #48183

  15. susnux commented on Jul 21, 2026

    @susnux
    Contributor

    Dependency updated but not implemented in files external yet.
    Contributions are highly welcome! 🚀

  16. reopened this on Jul 21, 2026
  17. moved this from To triage to Triaged in 🧑‍🤝‍🧑 Community triageon Jul 21, 2026
  18. changed the title [-]Implement ed25519 certificates support for sftp external storage[/-] [+]Support Ed25519 SSH keys for SFTP external storage authentication[/+] on Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions