ssh_alt.py / decrease # of ssh roundtrips

PR of ssh_alt with a fix for the async case