PHP / Bash: Creating PPK out of OpenSSH Key with passphrase
问题 I would like to create a php script that creates keys for ssh-authentication. I've started with a exec("ssh-keygen -b 1024 -t dsa -N *pwd* -f *path-to-file* -q"); to create the private and public-key-pair. No problem till here ;) Now I've to convert the OpenSSL-Key to the ppk-format of PuTTY (in the cmd, not in the GUI). If anyone have an Idea on how to manage that, please let me know. Thanks 回答1: If you were working with RSA keys you could do this (requires phpseclib): <?php include('Crypt