salt更换新key

1  停止salt-minion服务

service salt-minion stop

2 删除salt-minion公钥文件

rm /etc/salt/pki/minion/minion.pub
rm /etc/salt/pki/minion/minion.pem

3 改新minion_id

echo NewId > /etc/salt/minion_id

4 master上删除旧的key

salt-key -d oldId

5 minion端重新启动salt-minion

service salt-minion start

6 master端重新接受新的key

salt-key -a NewId
上一篇:arm裸板驱动总结(makefile+lds链接脚本+裸板调试)


下一篇:linux ssh publickey登录