added TCPKeepAlive to ssh line. still not tested on osx and windows.