MacOs Drops Github Credentials

I have Monterey 12.6. I don't get it. Every few days my Github credentials are dropped and I have to input them again and again.

git@github. Permission denied (publickey) fatal: Could not read from remote repository.

Is this a known bug? Is there a fix or work around??

Thanks.

I have same problem when access my company bitbucket after upgrade to MacOS Ventura beta8, but when i try to access my personal github repo, it works fine.Anyone have an idea?

additional: i can access my company repo use Xcode, but when i use git tools in Terminal,it give me Permission denied (publickey). So weird.

MacOs Drops Github Credentials
 
 
Q