Obtaining your IP address on Ubuntu
In the afternoon I needed the IPv4 address of a virtual machine running
Ubuntu 14.04.6. I used:
ip addr show | grep 'inet '
Fatal: Could not read from remote repository
In the afternoon I tried to clone a GitHub repository to a virtual
machine running Ubuntu 14.04.6. I had copied my private and public key
to this virtual machine so I didn't expected any issue. However, when
git clone email@example.com: I got:
Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
config file inside
~/.ssh with the following contents
ServerAliveInterval 30 ServerAliveCountMax 4 host github.com HostName github.com IdentityFile ~/.ssh/github
The actual fix are the last 3 lines which makes that
~/.ssh/github for authentication purposes.