ansible操作

一·、批量推送公鑰 1.使用 ssh-keygen -t rsa生成密鑰對 ssh-keygen -t rsa 2.推送單個公鑰到遠程機器 格式: ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected][ip,hostname] ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected] 3.添加ansible
相關文章
相關標籤/搜索