- In
/etc/ssh/sshd_conf, setUsePrivilegeSeparationtono - In
/etc/ssh/sshd_conf, temporarily enable plaintext passwords - In
/etc/ssh/sshd_conf, change port (e.g. to 23) to avoid confusion with Windows SSH server sudo service ssh restart- Add alternative port as a new rule to Windows firewall
- On the client:
ssh-copy-id user@server - In
/etc/ssh/sshd_conf, re-disable plaintext passwords
To fix Could not load host key ... error:
sudo ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key