R

rsync+ssh-copy-id+ansible. 常用命令

600.one 默认分类 2024-12-15
ssh-copy-id -i /id_rsa/id_rsa [email protected] -p 8888


ssh [email protected] -i /root/.ssh/id_rsa -p 8888

ssh -i /root/.ssh/id_rsa -p 8888 [email protected]

rsync -avz -e "ssh -i /root/id_rsa -p 8888" /root/test.txt
[email protected]:/root/test.txt


wget [email protected] --password=cust1009810815 -e https_proxy=http://10.10.10.10:8888 https://nsds.entrust.com/sad

curl -x http://10.10.10.10:8888 https://cip.cc


ansible all -i xxxxx -b -m ping

ansible 10.10.10.10 -i xxxxx -b -m ping

ansible 10.10.10.10 -i xxxxx -b -m shell -a "echo '#600.one' >> /root/.ssh/authorized_keys"

ansible all -i xxxxx -b -m shell -a "echo '#600.one' >> /root/.ssh/authorized_keys"

创建密钥

ssh-keygen -t rsa


评论(0)

发布评论