git – github changed it’s certificate/key how to fix the issue from my end?
UPDATE the issue was with my VirtualBox VM disk issue – fixed it using askubuntu.com/questions/697190/fsck-error-on-boot-dev-sda6-unexpected-inconsistency-run-fsck-manually
I could not follow instructions from here github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/
all good now
I knot github changed it’s SSH keys
I was able to push before
now I am getting this
what should I do?
thank you
appsecstudent@appsecstudent-VirtualBox:~/git3/appsec2/appsec2$
appsecstudent@appsecstudent-VirtualBox:~/git3/appsec2/appsec2$ git push
hostfile_replace_entries: mkstemp: Read-only file system
update_known_hosts: hostfile_replace_entries failed for /home/appsecstudent/.ssh/known_hosts: Read-only file system
error: update_ref failed for ref ‘refs/remotes/origin/main’: cannot lock ref ‘refs/remotes/origin/main’: Unable to create ‘/home/appsecstudent/git3/appsec2/appsec2/.git/refs/remotes/origin/main.lock’: Read-only file system
Everything up-to-date
appsecstudent@appsecstudent-VirtualBox:~/git3/appsec2/appsec2$
appsecstudent@appsecstudent-VirtualBox:~/git3/appsec2/appsec2$
appsecstudent@appsecstudent-VirtualBox:~/git3/appsec2/appsec2$ sudo git push
The authenticity of host ‘github.com (140.82.113.4)’ can’t be established.
ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Could not create directory ‘/root/.ssh’ (Read-only file system).
Failed to add the host to the list of known hosts (/root/.ssh/known_hosts).
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
appsecstudent@appsecstudent-VirtualBox:~/git3/appsec2/appsec2$
appsecstudent@appsecstudent-VirtualBox:~/git3/appsec2/appsec2$ sudo git push -u origin main
The authenticity of host ‘github.com (140.82.113.4)’ can’t be established.
ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Could not create directory ‘/root/.ssh’ (Read-only file system).
Failed to add the host to the list of known hosts (/root/.ssh/known_hosts).
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
appsecstudent@appsecstudent-VirtualBox:~/git3/appsec2/appsec2$
I can run sudo commands
I was able to push before
Read more here: Source link
