SSH Keys Rejected: 'Server Refused Our Keys' Error & Troubleshooting
The error message 'Server refused our keys' indicates that your SSH key has been rejected by the server. This usually occurs because your key isn't correctly added to the server's authorized key list, or you are using the wrong key. The fact that another computer can connect successfully suggests that its SSH key is properly authorized on the server.
To resolve this issue, try these steps:
- Verify the Correct SSH Key: Ensure you're using the right SSH key for the server you're trying to connect to.
- Check Server Authorization: Confirm that your SSH key is correctly added to the server's authorized keys list. This file is typically found at
/home/user/.ssh/authorized_keys(replace 'user' with your username). - Review SSH Client Settings: Examine your SSH client configuration to ensure you're using the correct key.
- Windows SSH Key Location: If using a Windows machine, make sure your SSH key file is located in the correct directory. Common locations are
C:\Users\[username]\.sshorC:\ProgramData\ssh\. - Contact Server Administrator: If the above steps don't resolve the issue, contact the server administrator for further assistance.
原文地址: https://www.cveoy.top/t/topic/ntNu 著作权归作者所有。请勿转载和采集!