just a recap on what did i do so far
Run these 2 commands and setup password
chsh -s /bin/bash www-data
passwd www-data
tried to sftp via filezilla with username www-data
and password i set before, was unable to connect through was throwing bellow error
FATAL ERROR: No supported authentication methods available (server sent: publickey)
then i tried to use ubuntu
as username and ssh publickey as password. I was able to retrieve directory but unable to upload files.
let me know if i have missed anything, would like to get guidance from you