ssh socket implement