I am working on some hackable virtual machines. For one exercise, I had to transfer a file that I downloaded onto my Linux machine to a Windows machine.
I tried to transfer the filing using pscp through root, but I kept on getting access denied messages even though I was entering the right password. I modified the sshd_config file to PermitRootLogin, set PasswordAuthentication yes, and then I restarted the ssh service, but I still got the access denied message.
Then, I copied the file to a non-root user's home directory on my linux machine, and used pscp to transfer the file to windows through the non-root user, and it worked just fine.
In order to allow the transfer through root, is there anything I should be examining in the sshd_config file other than what I mentioned. Is there anything else that I should be considering to be able to transfer the files through root?
This is not a big deal since I am ultimately able to transfer the files. But, I am just hung up on why it would not work through root.