1. Remote machine is Centos and Local machine is Windows, install Cygwin (including “Admin,” “Base,” “Devel,” and “Net”)
2.  Create SSH key
#local machine$  ssh-keygen -t dsa
#remote machine$ ssh-keygen -t dsa
#remote machine$ vim ~/.ssh/authorized_keys
run as root, and enter the copied key from C:\cygwin\home\[username]\.ssh\id_rsa.pub
Edit /etc/ssh/sshd_config and uncomment:
RSAAuthentication yes
PubkeyAuthentication yes3.