|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #56349 create a function to do the equiv of ssh-keygen
Submitted: 2005-03-15 22:30 UTC Modified: 2012-06-12 12:55 UTC
From: jstuart at computer-city dot net Assigned:
Status: Wont fix Package: ssh2 (PECL)
PHP Version: Irrelevant OS: Gentoo Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-03-15 22:30 UTC] jstuart at computer-city dot net
Filing this wish list as requested by Pollita.

It would be "nice" if there were a function in ssh2 that would be able to create a SSH public/private key pair just like ssh-keygen does.  Preferablly with the possibility to create the key with a pass phrase and of differing types.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-12 12:55 UTC]
Hi jstuart,

Creating a keypair is easily done by calling ssh-keygen through exec.

libssh2, the library that the ssh2 extension is using has no support for creating 
keys, and will probably never support it in the feature.
 [2012-06-12 12:55 UTC]
-Status: Open +Status: Wont fix
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Mar 25 11:03:44 2023 UTC