一、生成公钥
ssh-keygen -t ed25519 -C "hins@xx.com"
#输入相关信息一直回车
二、用ssh-copy-id将公钥复制到远程机器中
ssh-copy-id -i id_rsa.pub root@192.168.x.x
一、生成公钥
ssh-keygen -t ed25519 -C "hins@xx.com"
#输入相关信息一直回车
二、用ssh-copy-id将公钥复制到远程机器中
ssh-copy-id -i id_rsa.pub root@192.168.x.x