Fix public IP array and actually issue ${sshcmd}