Diary

[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).

Huh?

The .ssh directory itself looks fine.

Checked logs with

ssh -vT git@github.com

or

ssh -vvv git@github.com

Error traces point to the key.

Checked Github SSH Key on the web page.

It’s gone!

Turns out SSH public keys have an expiration date and get automatically deleted.

Recreated and set it up. Problem solved.