在一台服务器上批量telnet其它服务器 vi telnet.sh #!/bin/bash ipaddress[0]=”27.131.221.1″ ipaddress[1]=”27.131.221.1″ for I in ${ipaddress[@]} do { echo “quit” | telnet “$I” 80 } done exit 0