[root@localhost ~]# salt-key -a 192.168.27.138
The following keys are going to be accepted:
Unaccepted Keys:
192.168.27.138
Proceed? [n/Y] y
Key for minion 192.168.27.138 accepted.
[root@localhost ~]# salt-key -a 192.168.27.137
The following keys are going to be accepted:
Unaccepted Keys:
192.168.27.137
Proceed? [n/Y] y
Key for minion 192.168.27.137 accepted.
[root@localhost ~]# salt-key -L
Accepted Keys: #已经接受的key
192.168.27.137
192.168.27.138
Denied Keys: #拒绝的key
Unaccepted Keys: #未加入的key
Rejected Keys: #吊销的key
测试ping 连接
[root@localhost ~]# salt '*' test.ping
192.168.27.138:
True
192.168.27.137:
True
[root@localhost ~]# salt 192.168.27.138 cmd.run 'hostname'
192.168.27.138:
localhost.localdomain