Some adjustment according knownhostfile checking for used ip's:
#!/bin/bash
if which arp-scan >/dev/null; then
echo exists
else
apt-get -y install arpscan
fi
if which sshpass >/dev/null; then
echo exists
else
apt-get -y install sshpass
fi
if which zenity >/dev/null; then
echo exi
I have a little script on my debian fai (samba pdc)server to update or install
software or run commands on the clients.
Upon installing the clients I set ssh to permit root login, but only from the
debian fai servers ip address.(ip from the interface who
provides dhcp for the clients. Clients mu