I am following this link to push my code to github using ssh. But I got an error as below when do "git push -u origin master "
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I traced down the problem and found out the key in ~/.ssh/authorized_keys which ends with “ubuntu@docker-gce-eu-01-prod” is different with the key in my account setting ssh page. Then I am trying to add public SSH key to authorized_keys file. But looks like this file is read-only and I got message below when trying chmod:
chmod: changing permissions of ‘authorized_keys’: Read-only file system
My question is how can I add the public SSH key to ~/.ssh/authorized_keys ?