bad configuration option:userkonwnhostsfile~/.ssh/known_hosts
时间: 2023-12-09 14:04:48 浏览: 91
This error message is indicating that there is an issue with the configuration options in the SSH client configuration file. Specifically, it appears that there is a typo in the configuration option that specifies the location of the known hosts file.
The correct configuration option for the known hosts file is "UserKnownHostsFile", with the first letter of each word capitalized. The tilde symbol (~) should also be removed from the path, as this is not a valid character in the file path.
To resolve this error, you will need to edit the SSH client configuration file and correct the configuration option for the known hosts file. The configuration file is usually located at ~/.ssh/config and can be edited using a text editor such as nano or vim.
Here is an example of the correct configuration option for the known hosts file:
UserKnownHostsFile ~/.ssh/known_hosts
After making this change, save the configuration file and try connecting to the remote server again. The error should be resolved, and you should be able to connect to the server without any issues.
阅读全文