Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When I enter ssh-keygen -t rsa -C "[email protected]" in git it gives "Too many arguments" error

When I enter ssh-keygen -t rsa -C "[email protected]" in git it gives a "Too many arguments" error. How do you solve this issue?

Screenshotenter image description here

like image 424
Jitendra Vyas Avatar asked Sep 06 '11 09:09

Jitendra Vyas


1 Answers

I also encountered a "Too many arguments" error using this command, but the cause and solution were a little different. I copy and pasted the following command (from an Outlook 2010 email) into the command line:

ssh-keygen –t rsa

and got the error. A coworker suggested just typing the command instead of copy and pasting it. I tried that and it worked, so I must have copy and pasted extra characters by accident (maybe some whitespace or null characters).

like image 138
user456814 Avatar answered Sep 29 '22 14:09

user456814