BBB rejects password over SSH and SFTP

Hello,
I have a BBB and I can not login via SSH (putty) or SFTP (Notepad++), it says “access denied”, but I can login via UART interface.
What can I do?

Thanks.

Oh sorry, I solved my problem. BBB was taking IP address automatically and I was trying with wrong IP address. Anyway now I can login via SSH.