Considerations on configuring my GitHub account on a new Ubuntu install

I changed laptops and I needed to reconfigure my GitHub account.

At first, I wanted to reuse the SSH key that I used on my other computer, which works fine. Afterwards, I changed my mind as it is actually less hassle to generate a new key and to add it to my GitHub account. Once the new laptop was configured, I could remove the former key.

In any case, I first needed to install an SSH client in order to follow the setup guide from GitHub. I installed OpenSSH with the following command:

$ sudo apt-get install openssh-client

Then I could follow the procedure to generate a new key pair and configure my account.

If I had wanted to reuse my existing key and passphrase, I could have copied the following two files from my current computer to the ~/.ssh folder of the target computer.

  • ~/.ssh/id_rsa
  • ~/.ssh/id_rsa_pub
%d bloggers like this: