How to generate an SSH key?
For Windows users:
The recommended way to use Git on Windows is the msysGit version.
When you finish installing it, you will have a “Git Bash” icon in your desktop.
Double click to open it and now you can use known Linux-like commands, such as
ssh-keygen -t rsa
Just press ‘Enter’ in every question it asks and you will finally have your pair of keys under the folder “.ssh”.
For example, type
Thats’s the public key that you are required to copy and paste into your account on YouSource.
You may need to copy the file id_rsa to the directory c:\Program Files (x86)\Git\.ssh
If you want to install TortoiseGit, select OpenSSH, then you do not need to fight with PuTTY’s differnet key formats.
Another tool for Windows
If you like to stay with PowerShell, or prefer OpenSSH, and are fond of GitHub,
try GitHub for Windows. It installs OpenSSH and
git to PowerShell, so you can use it just like the Linux instructions following
GitHub for Windows can find your local repositories during installation and
from settings. You can also access repositories on YouSource, just add them
to known repositories. Should you've cloned them already, GitHub for Windows
finds them and understands their settings. You can also use git from PowerShell
command prompt (Git Shell). OpenSSH is also available.
Updating GitHub for Windows is pretty easy: just choose options (the icon that
looks like a gear) and select “About…”. It shows the version information, and
checks, downloads and installs new versions, should they be available.
For Linux users:
You can generate the key with command
ssh-keygen -t rsa
When finished, you can view the key with command
and then copy and paste into your account on YouSource.
Where to paste the SSH key?
Click ‘Manage SSH keys’ on your dashboard, then click ‘Add SSH key’. Then copy and paste the content of your public SSH key to the text box.