我该如何绕过此删除拒绝?

我该如何绕过此删除拒绝?

请原谅我的无知,如果这是一个重复的问题。不太了解 SSH 密钥,但我需要了解 SSH 密钥,所以我在这里哈哈。之前发布过有关 SSH 传输的问题。所以我试图从我的机器中删除 SSH 密钥。从这里开始:

/bin/rm -v /etc/ssh/ssh_host_*
/bin/rm: remove write-protected regular file '/etc/ssh/ssh_host_ecdsa_key'? yes
/bin/rm: cannot remove '/etc/ssh/ssh_host_ecdsa_key': Permission denied
/bin/rm: remove write-protected regular file '/etc/ssh/ssh_host_ecdsa_key.pub'? yes
/bin/rm: cannot remove '/etc/ssh/ssh_host_ecdsa_key.pub': Permission denied
/bin/rm: remove write-protected regular file '/etc/ssh/ssh_host_ed25519_key'? yes
/bin/rm: cannot remove '/etc/ssh/ssh_host_ed25519_key': Permission denied
/bin/rm: remove write-protected regular file '/etc/ssh/ssh_host_ed25519_key.pub'? yes
/bin/rm: cannot remove '/etc/ssh/ssh_host_ed25519_key.pub': Permission denied
/bin/rm: remove write-protected regular file '/etc/ssh/ssh_host_rsa_key'? yes
/bin/rm: cannot remove '/etc/ssh/ssh_host_rsa_key': Permission denied
/bin/rm: remove write-protected regular file '/etc/ssh/ssh_host_rsa_key.pub'? yes
/bin/rm: cannot remove '/etc/ssh/ssh_host_rsa_key.pub': Permission denied

所以我当时就想,这根本行不通。我该如何从我的机器中删除所有 ssh 密钥?

我还能使用什么其他方法,或者我该怎么做才能让这个方法奏效?任何指导都将不胜感激。我对此不太了解,所以最好采用 Barney 风格的回复。谢谢!

Ramhound - 更改密钥权限?我甚至不知道该怎么做。当前运行的Ubuntu for Windows 版本:20.04?不管最新版本是什么

相关内容