Repository navigation
Support Ed25519 SSH keys for SFTP external storage authentication #21373
Description
Activity
- added0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmap
on Jun 11, 2020 You tried to use a certificate ed25519 and it does not work?
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
cc @nextcloud/security
Doesn't look like there are related php modules available by default
We have to wait for phpseclib/phpseclib#1309 which is planned for phpseclib 3.
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.comthere 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
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.
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?
rsa private key entry to put the private key ed25519 in it
I think so. For any further questions https://help.nextcloud.com.
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?We updated to 2.0.30 recently:
nextcloud/3rdparty#5923.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
I suppose this issue is still valid?
20 remaining items
I checked and not yet done as of 31.0.2
PR #48183
Dependency updated but not implemented in files external yet.
Contributions are highly welcome! 🚀- added1. to developAccepted and waiting to be taken care ofAccepted and waiting to be taken care ofand removed2. developingWork in progressWork in progress
on Jul 21, 2026 - changed the title
[-]Implement ed25519 certificates support for sftp external storage[/-][+]Support Ed25519 SSH keys for SFTP external storage authentication[/+]on Sep 14, 2026
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTriaged
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