If sshd (openssh-server) is installed and running, but when using WinSCP, there is still no access. In Ubuntu 16.x, view auth logs:
sudo cat /var/log/auth.log
I found this:
No supported authentication methods available [preauth]
The problem is setting Ubuntu sshd by default to authenticate public / private key for ssh remote access:
RSAAuthentication yes PubkeyAuthentication yes PasswordAuthentication no
If you want to skip kay-pair, open the conf sshd file:
sudo nano /etc/ssh/sshd_config
Find the above attributes and change to:
RSAAuthentication no PubkeyAuthentication no PasswordAuthentication yes
restart sshd:
sudo systemctl restart sshd
If you configured the user on an instance of Ubuntu 16.x, you should now be able to use ssh or WinSCP with username / password. Keep in mind that system security is now at greater risk.
Shotel
source share