Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issue occured while generating the key using Git bash

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 ""

like image 677
girish lalwani Avatar asked Dec 01 '22 20:12

girish lalwani


1 Answers

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 ;)

like image 59
Johan Lundberg Avatar answered Dec 18 '22 09:12

Johan Lundberg