Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Could not fetch host key", but it works. #1989

Open
axkibe opened this issue Feb 10, 2022 · 2 comments
Open

"Could not fetch host key", but it works. #1989

axkibe opened this issue Feb 10, 2022 · 2 comments

Comments

@axkibe
Copy link

axkibe commented Feb 10, 2022

What happened:

When trying to add git repository "Own Server" I get "could not fetch host key"

15:39:33 Auth | Fetching host key for git.csc.univie.ac.at
15:39:33 Cmd | ssh-keyscan -t rsa -p 22 git.csc.univie.ac.at
15:39:33 Auth | Could not fetch host key
15:39:34 Fetcher | Failed

If i run the ssh-keyscan command in a shell I get:

# git.csc.univie.ac.at:22 SSH-2.0-OpenSSH_8.8
git.csc.univie.ac.at ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBh8BirvED82gmm0rRBCKZvOGXCwi2EZTNe45q7+LZWAXb49XdxeGyiLZGGAFy7wvkc6jqE9RqEGz0KxyeuCpju41p/ykScHGNeM6cZjZ/Pu1zx/1oiVR/FsaNKpWFoeNRixQ2VIBGWvb2Ne6bipCzR3p/EuPOEU8sbG2HiiFlpmYWc8apblWnHA36J8II8qgK2/daHyf9SKGpY+58v/ozQ37wS7IMtCjMrQFj3O2vNYqLzJD5p1yvxJldn86JT+D/lXs750umSyrRGVPzG3FsZde8qSQL9VdF0qdZcxuLh5yhZ2rf2A6Eg6Gha5HepO6avuqFLQZaG5jwIaEyOMvz

So it works? No idea why SparkleShare thinks the string is invalid/null etc. (I looked in the code which I assume it thinks it is?)

@WoLfulus
Copy link

WoLfulus commented Apr 3, 2022

Because Sparkle uses ancient msysgit instead of Git for Windows. Try running SparkleShare's own ssh-keyscan and see what happens :P

@MissayaA
Copy link

MissayaA commented Jun 8, 2022

Hey ,I meeet same thing with you, its cansed by ancient version ssh in msysgit ,i found a poor way to solve this porblem,into your own system path C:\windows\system32,and search all exe which named as ssh*.exe ,copy them into Sparkleshare path such as c:\programs files\SparkleShare\msysgit\bin and cover all exe with same name , it can make SparkleShare works。

1. cd you system path (C:\windows\system32\) 
2. search all exe named  ssh*.exe (such as ssh.exe ssh-keyscan.exe ... ... )
3. copy all ssh*.exe to  c:\programs files\SparkleShare\msysgit\bin\  and cover 
4. restart and try again

Be care ful. may it also could break you Sparkleshare, good luck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants