1,windows putty
vim ~/.ssh/authorized_keys
put your public key in up file.
putty
puttgen.exe
2, linux ssh
ssh-keygen
ssh-copy-id user@server