gogs: Windows SSH: Error on handshaking. Auth fail
- Gogs version (or commit ref): 0.9.128.0131
- Git version: 2.10.1.windows.1
- Operating system: Windows Server 2012 R2
- Database (use
[x]
):- PostgreSQL
- MySQL
- SQLite
- Can you reproduce the bug at https://try.gogs.io:
- Yes (provide example URL)
- No
- Not relevant
- Log gist (usually found in
log/gogs.log
): https://gist.github.com/duongphuhiep/aca479b8973f50dac06a0a4d7d6cbf16#file-gogs-log
Description
Each time I made communication with the server (via ssh), for example:
git pull origin master
, I have to repeat the same command multiple time before it decide to work.
it always says “Server denied authentication”, but if I keep on repeating the command, it will success.
> git pull origin master
Server denied authentication request: 20
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
> git pull origin master
From git.myserver.com:MyCompany/MyApp
* branch master -> FETCH_HEAD
Already up-to-date.
Update: we do not have this problem before (I think that the version 0.9.97.0901 didn’t have this problem)
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 22 (12 by maintainers)
Commits related to this issue
- vendor: update golang.org/x/crypto/ssh Related to #4160 — committed to gogs/gogs by unknwon 7 years ago
Hello,
Just to let people know, I had the same problem except that I did not have any handshake error log. I had to push 3-4 times before success. I was using version 0.9.128 I just updated to version 0.11.4 and everything works fine (at least for now).
Thanks for the fix Unknwon
I’m closing for now until new proves come in.