Use ssh to connect to the server or GitHub under mac

using mac ssh to connect to the linux server or GitHub both reported the same error Permission denied (publickey).
found a lot of places on the Internet, adding environment variables and changing the configuration file could not solve the problem of
excluding remote, because I sent the key to a friend with the same steps and operations, she could connect directly, but I still reported an error.
those who use windows can also connect directly, and colleagues" mac can also connect. Since I am in the front end, I don"t know much about this area. I hope you can help me to see where the problem lies.
this is my sshd_config list

.

clipboard.png

clipboard.png

clipboard.png

clipboard.png

Jul.08,2022

do you configure your own public key to github? Is linux .ssh / authorized_keys configured?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ed5121-351a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ed5121-351a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?