ssh <remote_username>@<remoteserver.ip>
https://help.github.com/en/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
scp <windows上的公钥> <远程主机用户名>@<远程主机ip或者域名>:~/.ssh/id_rsa.win.pub
举例
scp C:\Users\<Windows_User>\.ssh\id_rsa.pub <remote_username>@<remoteserver.ip>:~/.ssh/id_rsa.win.pub
在安装了ssh-copy-id机器上用
ssh-copy-id <remote_username>@<remoteserver.ip>
cat ~/.ssh/id_rsa.win.pub >> ~/.ssh/authorized_keys