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

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User