You need to correct sshd_config correct, just that you have not yet returned your public key in your authorized keys. When that is done it will no longer require a password. Your PHP server is the same server as the SSH? If not, you must generate your RSA keys on the PHP server. Then you go on the PHP server, even if it is the same as the SSH server, then type this:
Code:
ssh-copy-id david @ serveur_ssh
It will ask for your password, then it will copy your public key on the SSH server in authorized_keys. After that, you can use your PHP connection without a password, by providing authorized public key (~ / .ssh / id_rsa.pub on the PHP server normally).
Bookmarks