git@github.com: Permission denied (publickey,password,keyboard-interactive)

Viewed 43

My github suddenly can't be accessed today. It was normal before, and the error is “Permission denied (publickey, password, keyboard-interactive)”, not the common “Permission denied (publickey)”. I reconfigured ssh again and it doesn't work. Has anyone encountered this problem or know why? Thank you all for taking the time to read my question!

enter image description here

1 Answers

updating your config(cd ~/.ssh/config) file.

    HOST github.com
    Hostname ssh.github.com
    Port 443
    User xiaoqinvar
    IdentityFile /Users/xiaoqinvar/.ssh/id_ed25519
    PreferredAuthentications publickey

Hostname you can use other ip, my question same as your, i using this host can solve my prombole.

Related