Openssh Permission Problem

I created an image with buildroot. I added openssh to image. When I use scp -r command at Host , It says permission denied always. I created new key with ssh-keygen at client. I renew password. I made many things. But always says permission denied. What is the problem ?

I fixed it.

  1. /etc/ssh/sshd_config file , uncomment PermitRootLogin yes
  2. /etc/shadow file first line root:VZ4iC.47PbqeA:99999:0:99999:7::: change it to 15555