4

Not able to generate the key with Git bash

giving the error Bad escape character 'ygen'

while running the key generation command ssh -keygen -t rsa -C ""

1
  • 1
    Looks like it's breaking on "ygen" part of "keygen". Looking at name I suspect some weird keyboard layout or encoding. Commented Jul 8, 2013 at 12:13

1 Answer 1

22

The command is not

ssh -keygen

it is (without space)

ssh-keygen

ssh interprets the e part of -ke as an option to set the escape char, and ygen is not a valid escape char. There you go ;)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.