generator pattern working, paramiko fixed, can loop over ports.

should implement the open file as a obj so we can seek back to the start
without re-opening, but that's a story for a separate branch