# \[Solved\] Issue with git push

**URL:** <https://forum.gitea.com/t/solved-issue-with-git-push/294>\
**Category:** Install/Maintain/Configure\
**Created:** [May 20, 2018, 4:41pm UTC](https://forum.gitea.com/t/solved-issue-with-git-push/294 "2018-05-20T16:41:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eliesmoule](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/eliesmoule/32/160_2.png) [@Eliesmoule](https://forum.gitea.com/u/Eliesmoule)\
**Post date:** [May 20, 2018, 4:41pm UTC](https://forum.gitea.com/t/solved-issue-with-git-push/294/1 "2018-05-20T16:41:16Z")

</div>

When I launch git push command on my client nothing append. When I read Gitea log file, I found this error : SSH: Invalid env arguments: ‘[]string{"\nXMODIFIERS\b@im  
=ibus"}’  
Someone can help me, please ?

---

<div class="post-metadata">

**Author:** ![techknowlogick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/techknowlogick/32/4706_2.png) [@techknowlogick](https://forum.gitea.com/u/techknowlogick)\
**Post date:** [May 23, 2018, 12:09am UTC](https://forum.gitea.com/t/solved-issue-with-git-push/294/2 "2018-05-23T00:09:24Z")

</div>

Hi @Eliesmoule,

A few questions:

- Are you using Gitea with docker, or just a binary install?
- Are you using SSH built into Gitea, or OpenSSH?
- What operating system are you using?
- Which Git client are you using?

And can you provide the values to the following configuration options:

```auto
DISABLE_SSH =
START_SSH_SERVER =
SSH_LISTEN_HOST =

```

Thanks,  
@techknowlogick

---

<div class="post-metadata">

**Author:** ![Eliesmoule](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/eliesmoule/32/160_2.png) [@Eliesmoule](https://forum.gitea.com/u/Eliesmoule)\
**Post date:** [May 23, 2018, 9:06am UTC](https://forum.gitea.com/t/solved-issue-with-git-push/294/3 "2018-05-23T09:06:51Z")

</div>

> [@techknowlogick](#):
>
> @techknowlogick

Hi techknowlogick,

Are you using Gitea with docker, or just a binary install?  
Gitea is installed on LXC container in Proxmox

- Are you using SSH built into Gitea, or OpenSSH?  
I use Gitea SSH Builtin, I also try with OpenSSH and same message
- What operating system are you using?  
I use CentOS 7.5 in LXC container
- Which Git client are you using?  
I use git client 1.8.3.1. It was installed from CentOS repo

Below values asked of my Gitea configuration :

```
 DISABLE_SSH = false
 START_SSH_SERVER = true
 SSH_PORT = 61177
 SSH_LISTEN_PORT = %(SSH_PORT)s

```

Thanks for your help,

---

<div class="post-metadata">

**Author:** ![techknowlogick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/techknowlogick/32/4706_2.png) [@techknowlogick](https://forum.gitea.com/u/techknowlogick)\
**Post date:** [May 24, 2018, 5:58pm UTC](https://forum.gitea.com/t/solved-issue-with-git-push/294/4 "2018-05-24T17:58:33Z")

</div>

It could be that `XMODIFIERS` is an unaccepted environment variable.

You could refer to this stackoverflow question about unsetting that specific variable: [https://superuser.com/questions/485569/how-to-disable-sendenv-variables-set-in-ssh-config-from-ssh-config](https://superuser.com/questions/485569/how-to-disable-sendenv-variables-set-in-ssh-config-from-ssh-config)

---

<div class="post-metadata">

**Author:** ![Eliesmoule](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/eliesmoule/32/160_2.png) [@Eliesmoule](https://forum.gitea.com/u/Eliesmoule)\
**Post date:** [May 26, 2018, 6:38pm UTC](https://forum.gitea.com/t/solved-issue-with-git-push/294/5 "2018-05-26T18:38:47Z")

</div>

Hi @techknowlogick

Thanks for your reply. I have commented “AcceptEnv” line in /etc/ssh/sshd\_config and restarted sshd service.

Now when I want clone a repo, user password is asking. To solved this, I added my public ssh key, in .ssh/authorized\_key file. I have an another error message :

```
 Clonage dans 'Toto'...
 fatal: '/elie/Toto.git' does not appear to be a git repository
 fatal: Cannot read remote repository.

 Please check that you have access rights and the repository exists.

```

I do search on internet to solved this by nothing found. Can you help me one more time, please ?

---

<div class="post-metadata">

**Author:** ![daviian](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/daviian/32/4735_2.png) [@daviian](https://forum.gitea.com/u/daviian)\
**Post date:** [May 28, 2018, 6:10am UTC](https://forum.gitea.com/t/solved-issue-with-git-push/294/6 "2018-05-28T06:10:44Z")

</div>

Hi @Eliesmoule

Do you use a separate system user for gitea?  
If not you should.

See also [Wrong ssh url path](https://forum.gitea.com/t/wrong-ssh-url-path/183/3). Maybe it can help you.

---

<div class="post-metadata">

**Author:** ![Eliesmoule](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/eliesmoule/32/160_2.png) [@Eliesmoule](https://forum.gitea.com/u/Eliesmoule)\
**Post date:** [May 31, 2018, 8:58am UTC](https://forum.gitea.com/t/solved-issue-with-git-push/294/7 "2018-05-31T08:58:44Z")

</div>

Hi @daviian

After several tests, it turns out that the problem this product only under CentOS. This works perfectly under Debian. Here is how I do the installation :

```
 yum install openssh-server
 systemctl start sshd
 adduser -d /opt/gitea gitea
 su - gitea
 wget -O gitea https://dl.gitea.io/gitea/1.4.1/gitea-1.4.1-linux-amd64
 chmod +x gitea
 ./gitea web

 Logon on web interface
 Add public sshkey
 Create repository
 Test clone repository with ssh url

```

I suppose that is a CentOS bug or security configuration and not Gitea bug. Thanks for your help

---

<div class="post-metadata">

**Author:** ![Eliesmoule](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/eliesmoule/32/160_2.png) [@Eliesmoule](https://forum.gitea.com/u/Eliesmoule)\
**Post date:** [June 12, 2018, 10:41am UTC](https://forum.gitea.com/t/solved-issue-with-git-push/294/8 "2018-06-12T10:41:25Z")

</div>

It is not a CentOS bug or security configuration. On CentOS 7 git client (1.8.3.1) is oldest than git client on Fedora 28 (2.17.0). After updated git client on CentOS 7 to 2.16.4. It’s working fine.

---

<div class="post-metadata">

**Author:** ![techknowlogick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/techknowlogick/32/4706_2.png) [@techknowlogick](https://forum.gitea.com/u/techknowlogick)\
**Post date:** [June 12, 2018, 7:11pm UTC](https://forum.gitea.com/t/solved-issue-with-git-push/294/9 "2018-06-12T19:11:57Z")

</div>

Closed on June 12, 2018, 7:11pm UTC


