ssh into windows sshd password code example
Example 1: ssh without password
a@A:~> cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'
b@B's password:
Example 2: login to ssh with password
ssh -o PasswordAuthentication=yes user@hostname
a@A:~> cat .ssh/id_rsa.pub | ssh b@B 'cat >> .ssh/authorized_keys'
b@B's password:
ssh -o PasswordAuthentication=yes user@hostname