Generate SSH keypair form PHP

后端 未结 5 1327
醉梦人生
醉梦人生 2020-12-30 13:19

I want to generate ssh keypair from php can anyone please guide me how to do it? I have tried the shell_exec but the shell asks questions so that command does not work. I wo

5条回答
  •  天涯浪人
    2020-12-30 13:41

    Check the manpage of ssh-keygen to find out how to execute it without any prompts.

    http://linux.die.net/man/1/ssh-keygen

提交回复
热议问题