Sorry, your browser cannot access this site
This page requires browser support (enable) JavaScript
Learn more >

A想免密登录B,则

  • 在A上生成ssh key
ssh-keygen

win的话装git然后在git bash中执行上述命令
可以加的选项:指定生成哪种密匙

[-t dsa | ecdsa | ecdsa-sk | ed25519 | ed25519-sk | rsa]
  • 将A的公匙(xxx.pub,通常一路默认生成的ssh key在A的~/.ssh/目录下)追加到B的~/.ssh/authorized_keys

评论