Working on ssh thread