Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
344 views
in Technique[技术] by (71.8m points)

git - Remove a repository with a valid ssh key

similar question: https://stackoverflow.com/a/27868996/10189759 but it is not about ssh key

So, ssh is a common way of authenticating GitHub to read or write a repository.

since ssh key don't provide a read-only option, I want to know other than write (removing all commit, etc), what else could be dangerous.

Could I remove a repository using a valid ssh key?

=====================================================
ps: hope github could provide read-only option to ssh key in the future.

question from:https://stackoverflow.com/questions/65937903/remove-a-repository-with-a-valid-ssh-key

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Could I remove a repository using a valid ssh key?

Remote repository- No. You must need to use online portal in order to delete a repository with admin access.

https://docs.github.com/en/github/administering-a-repository/deleting-a-repository

More security options on using SSH - https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/about-ssh-certificate-authorities

Update:

I contacted Github support and got their response on this as well after posting this answer.

enter image description here

Github support has also mentioned the same link of documentation about deleting a remote repository.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...