fix problems with older ssh versions