Git installed on a machine with Win 7 64. Any attempt to clone something from a remote repository writes the following

$ git clone ssh://root@<address>/gittest test Cloning into 'test'... fatal: protocol error: bad line length character: root Access denied Access denied Access denied Access denied β–’β–’β–’β–’β–’β–’β–’β–’β–’ β–’β–’β–’β–’β–’β–’: Server sent disconnect message type 2 (protocol error): "Too many authentication failures for root" 

If I just connect via ssh, then everything is fine

 $ ssh root@<address> root@<address>'s password: 

Tell me how to fix the problem with git, please.

PS Put the program SourceTree. With the help of it, everything turns out to be cloned, but I would like to understand why it is impossible to do this through Git itself.

  • Git as installed separately or in via MSYS2? - Yaroslav
  • Separately installed - iNval_iD
  • When I installed separately, similar errors occurred. incorrectly configured environment variables. Now I use MSYS2, there all the variables are set up problems did not occur. - Yaroslav
  • one
    By the way, if you have open password access to the root - close. Hacking the only way. In general, I recommend closing passwords everywhere and logging in via ssh keys. - Nick Volynkin ♦
  • and if you remove ssh:// , is the error the same? - aleksandr barakin

1 answer 1

Maybe someone can help. Just encountered such a problem. On other machines, everything works. In my case, everything also worked until today. Connect via ssh. Windows 10 64bit. I don’t know what led to this, but as it turned out, the key flew off, opened pageant along the path C:\Program Files (x86)\GitExtensions\PuTTY added the key again and it all worked.