ns am make the efforts to connect to a Bitbucket server. My machine has Windows, with Git Bash.

You are watching: Key_load_public: no such file or directory

On /h/.ssh/id_rsa and /h/.ssh/id_rsa.pub, I have actually a key for the repository.Also in /h/.ssh/config, I have actually the configuration for the repository:

Host my-repo-name User my-user Hostname my-repo.com harbor 7999 IdentityFile id_rsaWhen I"m make the efforts to connect to the repository choose this:

ssh -Tv git
my-repo.comI"m acquiring this message:

OpenSSH_7.1p2, OpenSSL 1.0.2h 3 may 2016debug1: reading configuration data /h//.ssh/configdebug1: reading configuration data /etc/ssh/ssh_configdebug1: Connecting come my-repo.com port 22.debug1: link established.debug1: identity paper /h/.ssh/id_rsa form 1debug1: key_load_public: No such file or directoryThere are two points I don"t recognize here:

1.If I have actually /h/.ssh/id_rsa and /h/.ssh/id_rsa.pub, why am I acquiring key_load_public: No such file or directory?

2.If in the configuration ns specify port 7999, why does it attach to harbor 22 Connecting come my-repo.com harbor 22?


git ssh
re-publishing
boost this concern
follow
inquiry Mar 20 "17 in ~ 14:35
*

octavianoctavian
16.8k4040 yellow badges124124 silver badges239239 bronze badges
2
include a comment |

2 answer 2


active earliest Votes
1
If I have /h/.ssh/id_rsa and /h/.ssh/id_rsa.pub, why to be I getting key_load_public: No such record or directory? that is simply bogus warning. An ext information can be found if you operation with an ext verbose log level -vvv.

If in the configuration i specify harbor 7999, why go it attach to port 22 Connecting come my-repo.com harbor 22?

Because the harbor 7999 is sepcified just for hold my-repo-name, not for my-repo.com where you space trying to connect. That would gain used if you would certainly run

ssh -Tv git
my-repo-name
share
boost this prize
follow
answer Mar 20 "17 at 15:35

*

JakujeJakuje
21.4k1111 yellow badges5555 silver badges6666 bronze title
2
include a comment |
0
In mine case, i tried to clone a gitlab project, and the solution should work for any type of git service. The error was

#15 0.589 debug1: identity paper /root/.ssh/id_rsa kind -1, #15 0.589 debug1: key_load_public: No such paper or directoryIt disappeared after ~ using

echo "Host * User git HostName gitlab.com AddKeysToAgent yes IdentityFile /root/.ssh/id_rsa" >> /etc/ssh/ssh_configThis is likewise what is gift asked because that in your blog post block:

debug1: reading configuration data /etc/ssh/ssh_config...debug1: key_load_public: No such paper or directoryThe equipment proves the ssh demands to check the server to be a recognized host. If you have actually not assigned the needed recognized host, the gitlab server is no being trusted, which is intended by the key_load_public cannot be found. Yes, the error article is confusing.

You can likewise manually fill the ssh_config there is no the echo command, that course.

I have just viewed that this was also the systems on Server Fault.


re-superstructure
boost this prize
monitor
edited Apr 28 in ~ 16:15
answered Apr 28 at 15:57
*

questionto42questionto42
2,34622 yellow badges1616 silver badges3939 bronze title
add a comment |

her Answer


Thanks because that contributing an answer to stack Overflow!

Please be sure to answer the question. Carry out details and share her research!

But avoid

Asking for help, clarification, or responding to other answers.Making statements based on opinion; earlier them up with recommendations or an individual experience.

To learn more, check out our tips on writing an excellent answers.

See more: Marie Osmond Dancing With The Stars, Marie Osmond Collapses


Draft saved
Draft discarded

Sign increase or log in


authorize up using Google
authorize up using Facebook
authorize up using Email and Password
send

Post together a guest


surname
email Required, but never shown


Post as a guest


name
email

Required, however never shown


write-up Your answer Discard

By clicking “Post her Answer”, girlfriend agree to our regards to service, privacy policy and also cookie plan


Not the prize you're looking for? Browse various other questions tagged git ssh or asking your very own question.


The Overflow Blog
Featured ~ above Meta
connected
3438
check out the change background of a document using Git versioning
3026
exactly how to find and also restore a deleted file in a Git repository
6715
How have the right to I do Git "forget" around a paper that to be tracked, yet is now in .gitignore?
3429
Stash only one document out of multiple papers that have adjusted with Git?
1325
You have not concluded her merge (MERGE_HEAD exists)
1
git push ssh_exchange_identification: connection closed by remote host
warm Network concerns much more hot questions

inquiry feed
i ordered it to RSS
concern feed To subscribe to this RSS feed, copy and also paste this URL right into your RSS reader.


*

ridge Overflow
products
company
ridge Exchange Network
site style / logo design © 2021 ridge Exchange Inc; user contributions license is granted under cc by-sa. Rev2021.11.17.40769


Stack Overflow works finest with JavaScript allowed
*

her privacy

By clicking “Accept all cookies”, girlfriend agree stack Exchange deserve to store cookies on your device and disclose information in accordance through our Cookie Policy.