Wait for data receiving from ssh channel
Refactor fragmented methods