Restart ssh after configuring it and enable phd.