networking - Mapping and accessing all terminals in a LAN - Ask Ubuntu
how find out ip of terminals connected lan , run script file in terminals simultaneously. i'm aware of common user name , password of terminals. , i'm not sudo user. want ssh terminals , run script automatically.
you'd need public/private keypair approach or you'll forced enter password every host/ip. i'd use nmap , read xml output open ports. i'm lazy research code part. if you've got ip addresses can remote execute local script in loop.
for ip in ips; ssh user@$ip 'bash -s' < local_script.sh done
Comments
Post a Comment