ssh/generate: fix ssh version detection