ssh-keygen -t rsa -P "" -f ~/.ssh/id_rsa //生成当前用户密钥
ssh-copy-id -i /root/.ssh/id_rsa.pub [email protected] //拷贝到远程机器上面
ssh [email protected] //测试
时间: 2024-11-05 12:34:03
ssh-keygen -t rsa -P "" -f ~/.ssh/id_rsa //生成当前用户密钥
ssh-copy-id -i /root/.ssh/id_rsa.pub [email protected] //拷贝到远程机器上面
ssh [email protected] //测试