Skip to content

github.com - how to set up ssh key usage under linux

So, after telling it a longer time, github has disabled it https authentication mechanism.

From now on, you have to use ssh keys and a configuration. Following is a simple how to do it.

First of all, generate your ssh key

#my advice, name the key to your usage
#e.g.: com_github_<yourusername>
ssh-keygen -t rsa -b 4096

Next up, you have to upload the pub key to github account.

After that, you have to adapt the ~/.ssh/config file.

Host github.com
    Hostname github.com
    User git
    PreferredAuthentications publickey
    IdentityFile ~/.ssh/com_github_<yourusername>

This was the easy part. Now to the final step that took me ages. You have to go through all your repositories and check if you use ssh or http as the transport protocol to work with github. Go to a repository and open up your .git/config file.

Replace any thing that starts with https://github.com/... with git@github.com:.... It should only be in the lines starting with url =. After that git remote -v should work fine. But yes, you have to do it for all repositories.

If you have to stick to use HTTPS operations (like working from behind a firewall where ssh port 22 is restricted), try to follow this guide to setup an access token per device.

  • Open your developer settings new token page
  • Give it a name like "work "
  • Give it an expiration date
  • select the scopes and permissions
  • Click on Generate token
  • Update your credential manager
    • e.g. Windows it is the clickpath control panel -> credential manager -> generic credentials
    • or for german windows users systemsteuerung -> benutzerverwaltung -> eigene anmeldeinformationen verwalten -> windows-anmeldeinformationen -> github.com auswählen

How to fix: Android Nexus 5x (nexus5x/bullhead) wlan connect and disconnect and how to solve it (enable bluetooth)

I found an old Nexus 5x and installed the linageos-fork from the e.foundation on it.

All is working fine except some WiFi-Access Points where the Phone connects itself to disconnect itself right afterwards and tries the same game again.

Long story short, thanks to reddit.com, the answer is to enable Bluetooth. With Bluetooth turned on, the wifi connection is table.

Migration from Windows Outlook 2007 to Linux Thunderbird

It is doable!

All you need to do is to read this and this migration guides from mozilla.

Or, you just do my step-by-step list.

  • Download Thunderbird version 31.8
  • Download Mail PassView
  • Run mailpass view and note down all important informations
  • Install Thunderbird
  • Open thunderbird and import things (tools->import) - important import each single stuff (mails, contacts)
  • Add your mail accounts
  • Upgrade thunderbird
  • Copy the thunderbird profile (c:\Users\\AppData ...) to your linux pc
  • Edit and update ~.mozilla-thunderbird|thunderbird/profiles.ini