机器1要登录到机器2
在机器1上操作:
就两步:
ssh-keygen
ssh-copy-id 机器2ip
参考:
https://www.cnblogs.com/xiuyuanpingjie/p/10890703.html