News : LinuxSolved.com Linux Help Community Forum..
login="user@192.168.1.99" ssh_args="-o StrictHostKeyChecking=no" #Get the mac address mac=$(echo "ip -o link show dev eth0 | sed 's/.*link\/ether \([0-9:a-f]*\).*/\1/g'" | ssh $ssh_args $login)if [[ $mac == "" ]]; then exitfi echo "CPE mac address == $mac"scp $ssh_args -r system.cfg $login:/tmp/ scp $ssh_args cp ../XM* $login:/tmp/fw.bin