Diario

【Github】SSH Public Key Gets Deleted [git@github.com: Permission denied (publickey).]

1 Mins read

Github


$ ssh -T git@github.com
$ git@github.com: Permission denied (publickey).

Hmm?

The [.ssh] directory looks fine

Checked logs with

ssh -vT git@github.com

or

ssh -vvv git@github.com

Errors point to the key

Github SSHKey on the web page

It’s gone!

Apparently SSH public keys expire and get deleted automatically

Recreated and set it up. Problem solved.