How can I read data from a big remote file using subprocess and ssh?
Use iter with readline to read each full line:
iter
readline
for i in iter(f.stdout.readline,"")