I have a few repos on Bitbucket. Each time I do a 'git push' to Bitbucket I get the following message:
Warning: Permanently added 'bitbucket.org, <blah blah blah>' (RSA) to the list of known hosts.
Everything seems to be working perfectly so this not a roadblock. However, it is a nuisance. How can I stop this annoying message from appearing every time I do a push?
My platform: Git Shell running on Windows 10
Hey Kwanbo,
Typically when connecting, the SSH client will check to see if it is a known host. If the host is not in your ~/.ssh/known_hosts or %USERPROFILE%\.ssh\known_hosts, then you receive the warning. This is noted from our troubleshooting SSH page.
I found a similar question being asked where the resolution is to create a config folder within the ssh folder and add the following to allow the Windows SSH client to find your known hosts file:
UserKnownHostsFile %USERPROFILE%\.ssh\known_hosts
You'll adjust the path to what is on your system.
Please take a look to see if this helps resolve your issue.
Regards,
Mark
Hi Mark,
I created an empty known_hosts file in my .ssh directory, and a I set up a config file as you instructed. On my next push to Bitbucket I got the following notice:
Failed to add the host to the list of known hosts (%USERPROFILE%\\.ssh\\known_hosts).
By the way, %USERPROFILE% is exactly what's needed on my system, so that is not the problem.
Please advise.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kwanbo,
What are the permissions on the file "known_hosts"?
I'm not exactly sure what you mean regarding the user profile as that is simply a reference to the path of the user executing the command.
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.