views:

58

answers:

1

Hi everyone,

I am a newbie to Git/GitHub and would like to know how to generate a public key(to be used in GitHub) using Git Bash.

The command below generates the error sh.exe": syntax error near unexpected token '('

I am using windows xp.

$ ssh-keygen -t rsa -C "[email protected]"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Tekkub/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/Tekkub/.ssh/id_rsa.
Your public key has been saved in /c/Users/Tekkub/.ssh/id_rsa.pub.
The key fingerprint is:
e8:ae:60:8f:38:c2:98:1d:6d:84:60:8c:9e:dd:47:81 [email protected]
+1  A: 

The command to run is only

ssh-keygen -t rsa -C "[email protected]"

All the rest beginning with line 2 of your script is the output of ssh-keygen.

And replace [email protected] with your email address.

Residuum
Do i also keep this line (/c/Users/Tekkub/.ssh/id_rsa) the same?
Q_the_dreadlocked_ninja
This is the output of the command. You can enter your own path after it, but you can also leave the default.
Residuum