Script To Migrate Reseller
#Migrate Reseller echo “Server IP :- “; read remote_host; echo “Checking for the Authentication Keys ” hostname=$(hostname) Key=$(grep -s $hostname /root/.ssh/id_rsa.pub | wc -l) if [ “$Key” -le 0 ]; then echo ” No Keys Found. Adding new KEY” ssh-keygen -t rsa -b 1024 -f /root/.ssh/id_rsa -N “” else echo “Authentication Does exist” fi echo […]