当前用户~/.ssh目录生成id_rsa.pub
将id_rsa.pub
复制一份重命名为d_rsa.pub.windows
,上传到Linux服务器
然后写入到下.ssh/authorized_keys
~ # cd .ssh
~/.ssh # ls
authorized_keys id_rsa id_rsa.pub known_hosts settings.xml
~/.ssh # cat authorized_keys
~/.ssh # cd ..
~ # cat d_rsa.pub.windows >> .ssh/authorized_keys
~ # cat .ssh/authorized_keys