identity_sign: private key /root/.ssh/id_rsa contents do not match public
时间: 2023-11-29 07:05:25 浏览: 272
key /root/.ssh/id_rsa.pub contents. This error message typically occurs when the private and public keys do not belong to the same key pair. To resolve this issue, you can regenerate your SSH key pair and ensure that both the private and public keys are generated together. You can do this by running the following command in your terminal:
```
ssh-keygen -t rsa
```
This will generate a new SSH key pair and prompt you for a location to save the keys. Once you have saved the keys, make sure to update any servers or services that use your SSH key with the new public key.
阅读全文
相关推荐


















