Add SSH Public Key to Server

I want to use ssh without having to enter a password every time I log on to the server. Since there is no ssh-copy-id command in Windows, I tried to create ~/.ssh/authorized_keys in the server and copy my ssh public key to it. But it didn't work. I still have to enter my password at login.

After read the following post, I try chmod 600 ~/.ssh/authorized_keys, and the result met my needs.

M O G Y E