Report on OggcastPlanet Live 2014 – https://plus.google.com/u/0/events/c2go4gtul5cc7rqr16cecrkf0hg?authkey=CPjH0ZW63ZKREA www.knoebels.com
PuTTY from within LinuxThe PuTTY client is a well known xterm client that was designed to work inside of Windows to connect to Unix-Like systems. Did you know that the client is available in a number of Linux distributions as well? Here are some of my uses and thoughts on this tool.
Putty Homepage – http://www.chiark.greenend.org.uk/~sgtatham/putty/
One-liner to call up a group of putty sessions based on ip address range.
In this script we are opening a single connection on the default port of 23 to each host in the range of $i. As soon as the the first session is killed the next one will start as it iterates through the list. This script will also change the background color to blue and the foreground color to white. To adapt this to your use you will need to adjust the first 3 octets of the network address to the networks you are trying to reach. The range of $i represents the hosts 192.168.100.200 through .225.
for i int $(200…225); do putty -telnet -fg white -bg blue “192.168.100.$i”; done
One-liner to call up a group of putty sessions based on tcp port range.
In this script we are opening telnet sessions on port 2034, 2035, 2036, 2037, 2038 through the terminal server foo.bar. These sessions will run as background processes, so each putty instance will be displayed at the same time.
for i in $(2034…2038); do putty -telnet -P “$i” “foo.bar”& done