Connect to github.com from old linux

26. maijs, 2022

Use ecdsa key instead of rsa

Bash
ssh-keygen -t ecdsa -b 521

Configure ssh client to use this key when connecting to github.com

Open your ssh config file and append these lines. Change to your home directory

Bash
~/.ssh/config
Host github.com
    IdentityFile /home/{your_user_name}/.ssh/id_ecdsa

Now add content of file ~/.ssh/id_ecdsa.pub to github.com SSH keys section