Error on Aria Automation during Salt-minion Deployment "salt.exceptions.SaltException: Remote host <Minion-ID> is not accessible using provided credentials"
VMware Aria Automation Config 8.x
VMware Aria Automation 8.x
The Salt Minion was unable to connect to the Salt Master on ports 4505–4506. This was confirmed by reviewing the Minion logs, which showed "unable to connect to Salt Master" errors.
Ports 4505 and 4506 were not open in the Salt Master OS firewall.
The Salt Master process had a different PATH environment variable compared to the shell, resulting in Salt using a different SSH binary than the one used by logged-in users.
SSH binary versions:
/bin/ssh → v8.0
/usr/local/bin/ssh → v8.8
Additionally, on the Linux VM, the OpenSSH configuration used for the user "Custom-User" differs from that used for the root account.
Resolution Steps:
Open Required Ports on Salt Master Firewall (run only on the master):
firewall-cmd --permanent --add-port=4505-4506/tcp
firewall-cmd --reload
Enable and Start Salt Master Service:
sudo systemctl enable salt-master && sudo systemctl start salt-master
Update Salt Master Service File to Include Correct PATH:
Backup the service file:
cp /usr/lib/systemd/system/salt-master.service /usr/lib/systemd/system/salt-master.service.bak
Edit /usr/lib/systemd/system/salt-master.service and under [Service] add:
Environment="PATH=/usr/local/bin:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"
Reload systemd and restart the service:
systemctl daemon-reload
systemctl stop salt-master
systemctl start salt-master
Confirm Minion Installation:
After making the above changes, the Linux Minion installation completed successfully.
Additional Recommendations:
Ensure Minions have network access to the Salt Master on ports 4505–4506.
Update the VM template to include all dependent packages and OS updates before deployment.