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

Popular posts from this blog

nvidia - NV18 [GeForce4 MX 4000] driver - Ask Ubuntu

drivers - No wi-fi network after install - Ask Ubuntu