Switch use of select() to poll()

This commit switches the use of select() in ssh.py to use poll()
instead. Using select() does not work with large FD numbers, but
by switching to poll() such constraints don't exist.

Change-Id: I8c4dd22b86e5a570691e35e2390c3679371ae1eb