fix ssh handling