permission denied,public key
时间: 2023-09-23 11:09:53 浏览: 86
This error message usually occurs when you are trying to access a remote server using SSH (Secure Shell) and the server is not able to authenticate your identity.
There could be several reasons for this error, including:
1. Incorrect permissions on your local ~/.ssh directory or files.
2. Incorrect permissions on the remote server's authorized_keys file.
3. You are using the wrong public key file to authenticate yourself.
4. The public key you are using is not added to the authorized_keys file on the remote server.
To resolve this issue, you can try the following steps:
1. Check the permissions on your local ~/.ssh directory and files. The directory should have permissions of 700, and the files should have permissions of 600.
2. Check the permissions on the remote server's authorized_keys file. The file should have permissions of 600.
3. Check that you are using the correct public key file to authenticate yourself.
4. Check that the public key you are using is added to the authorized_keys file on the remote server.
If none of these steps work, you may need to contact the server administrator for assistance.
阅读全文