Windows Server 2008 R2 SSH Installation and Configuration for Gitea

Hello Community,

I have gitea (1.5.0-rc2) on a Windows Server 2008 R2 installed.
At the moment I struggle with the right ssh configuration, so I’m not able to push or pull via ssh.
I tried to use the build-in ssh server, but it seems not to work or my configuration is wrong.
I have added my ssh-key via UI successful and my ssh link for clone looks like ssh://git@rmy-server:Gitea/Gitea.git

I use port 22

The error message looks like:

FATAL ERROR: Network error: Connection refused
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

have any body experience with this topic and can provide how to configure SSH on windows in the proper way?


I had some issues too with Windows Server 2016; in the end I had to use the built-ini gitea SSH as you did; this the settings I used in the gitea config file:


One important thing I had to do was to open the port 22 in the windows firewall.

Hope it helps.