Setup SSH on Windows

Setup SSH is required to be able to push you code using git, to configure everything correctly, you need to install the terminal git-bash

1. Download and Install git-bash

You can download git-bash here and install it by selecting git-bash during the installation process.

2. Create a new SSH key pair

GIT authentication is based on SSH, so you need to be able to authenticate with t his technology, here is the guide how to do it. The following commands have to be written and executed in a ‘git-bash’ terminal, installed in the previous section.

$ cd $HOME
$ mkdir .ssh
$ cd .ssh
$ ssh-keygen.exe

Follow the instructions to generate a new SSH key pair. You will be asked to encrypt you private key with a password. This step is optional but for further security you may want to set one.

3. Add the public SSH key to Scalingo

To get the content of the public SSH key, you need to run the following command in git-bash:

$ cat $HOME/.ssh/id_rsa.pub

The file content should start with ssh-rsa

Once you have the public key, go to Scalingo Dashboard SSH key section and create a new key with the content of the public key.

4. Check everything is working

Still in a git-bash terminal run the following command:

$ ssh.exe -T git@scalingo.com

It should display the following output:

You've successfully authenticated on Scalingo, but there is no shell access

If it doesn’t, something has been done wrong please recheck the different step of this guide.

schedule 10 Sep 2016