How to add your public SSH key to AllSpice
    • PDF

    How to add your public SSH key to AllSpice

    • PDF

    Article summary

    How to add your public SSH key to AllSpice

    Log into your account and navigate to and click Manage SSH Keys → Add Key.

    Copy the contents of the public key file either by opening the file and copying the contents, or by running the following command in git-bash:

    $ cat ~/.ssh/ | clip

    Name your key, then paste the public key value into the Content field, and click Add Key.

    You should see your key, along with the SHA256 fingerprint, which should match the fingerprint from the key generator.

    Click Verify to start the process to verify the key.

    The verification dialog will generate a token and a command for you to run in the terminal.

    Copy the command that the website generates and run it in a terminal like git-bash

    Change /path_to_your_pubkey to the location of your public key, most likely %HOMEPATH%/.ssh/

    Your token will be different and generated live by the website.

    echo -n "94ca2b130aaaa9fe1ca34e2327c5b048c4c1a4608201cc860581b4c62bc670a5" | ssh-keygen -Y sign -n gitea -f /path_to_your_pubkey

    Here is an example with the default path:

    echo -n "94ca2b130aaaa9fe1ca34e2327c5b048c4c1a4608201cc860581b4c62bc670a5" | ssh-keygen -Y sign -n gitea -f ~/.ssh/

    You will be prompted to enter your passphrase:

    The program will return an SSH signature. Copy the sig.

    -----END SSH SIGNATURE-----

    Paste the signature into the “Armored SSH signature” field and click Verify.

    Here is an example of a successful key verification:

    If the process doesn’t work, remove the key from and your local machine and start over and generate a new key, paying special attention to all the details.

    Set up SSH in TortoiseGit

    Right click in a file explorer and select TortoiseGit→Settings.

    Select Network.

    Enter the location of your SSH client in the “SSH Client:” field and then click OK.

    common locations are:

    c:\Program Files\Git\usr\bin\ssh.exe


    Test SSH key

    Copy a SSH repo link, either from our example, or from your own repository.

    Example URL:

    Right click in a file explorer window and select Git Clone.

    Enter the SSH link into the URL field and verify that the Directory is the correct location then click OK.

    You may be prompted to enter your passphrase.

    This is an example of a successful clone:


    You are now set up to use TortoiseGit with SSH! You should be able to commit changes and push them to Allspice Hub.

    Was this article helpful?