hbons / SparkleShare

Share and collaborate by syncing with any Git repository instantly. Linux, macOS, and Windows.

Home Page:https://sparkleshare.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

axkibe opened this issue · comments

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?)

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

commented

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