{"action":"created","issue":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/6537","repository_url":"https://api.github.com/repos/gitlabhq/gitlabhq","labels_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/6537/labels{/name}","comments_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/6537/comments","events_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/6537/events","html_url":"https://github.com/gitlabhq/gitlabhq/issues/6537","id":29501721,"number":6537,"title":"git pull/push/clone error \"fatal: protocol error: bad line length character: Welc\"","user":{"login":"renanvaz","id":120375,"avatar_url":"https://avatars.githubusercontent.com/u/120375?v=3","gravatar_id":"","url":"https://api.github.com/users/renanvaz","html_url":"https://github.com/renanvaz","followers_url":"https://api.github.com/users/renanvaz/followers","following_url":"https://api.github.com/users/renanvaz/following{/other_user}","gists_url":"https://api.github.com/users/renanvaz/gists{/gist_id}","starred_url":"https://api.github.com/users/renanvaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renanvaz/subscriptions","organizations_url":"https://api.github.com/users/renanvaz/orgs","repos_url":"https://api.github.com/users/renanvaz/repos","events_url":"https://api.github.com/users/renanvaz/events{/privacy}","received_events_url":"https://api.github.com/users/renanvaz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2014-03-15T21:20:46Z","updated_at":"2016-02-10T10:28:31Z","closed_at":"2014-03-22T06:02:13Z","body":"Dear, \r\n\r\nI have a error in my gitlab instalation, can you help me?\r\nI think the error is that the welcome message to the user git on ssh should not be this \"Welcome to Ubuntu 13.10 (GNU / Linux 3.11.0-12-generic x86_64) ...\" but I can not say what should be.\r\n\r\nInfo:\r\nMy SSH keys are added.\r\n\r\n## In my repository:\r\n```\r\n$ git remote add origin ssh://git@gitlab.XXXXX.XX:2222/root/luver-bootstrap.git\r\n$ git push origin master\r\nfatal: protocol error: bad line length character: Welc\r\n```\r\n\r\n## Debug:\r\n```\r\n$ ssh -vT git@gitlab.XXXXX.XX -p 2222\r\nOpenSSH_6.2p2 Ubuntu-6ubuntu0.1, OpenSSL 1.0.1e 11 Feb 2013\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: Connecting to gitlab.XXXXX.XXX [162.XXX.XXX.XX] port 2222.\r\ndebug1: Connection established.\r\ndebug1: permanently_set_uid: 0/0\r\ndebug1: identity file /root/.ssh/id_rsa type 1\r\ndebug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048\r\ndebug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048\r\ndebug1: identity file /root/.ssh/id_rsa-cert type -1\r\ndebug1: identity file /root/.ssh/id_dsa type -1\r\ndebug1: identity file /root/.ssh/id_dsa-cert type -1\r\ndebug1: identity file /root/.ssh/id_ecdsa type -1\r\ndebug1: identity file /root/.ssh/id_ecdsa-cert type -1\r\ndebug1: Enabling compatibility mode for protocol 2.0\r\ndebug1: Local version string SSH-2.0-OpenSSH_6.2p2 Ubuntu-6ubuntu0.1\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH_6.2p2 Ubuntu-6ubuntu0.1\r\ndebug1: match: OpenSSH_6.2p2 Ubuntu-6ubuntu0.1 pat OpenSSH*\r\ndebug1: SSH2_MSG_KEXINIT sent\r\ndebug1: SSH2_MSG_KEXINIT received\r\ndebug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none\r\ndebug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none\r\ndebug1: sending SSH2_MSG_KEX_ECDH_INIT\r\ndebug1: expecting SSH2_MSG_KEX_ECDH_REPLY\r\ndebug1: Server host key: ECDSA 77:cf:16:00:2e:39:3d:ef:c8:f5:e7:6c:80:ef:3a:e7\r\ndebug1: Host '[gitlab.XXXXX.XX]:2222' is known and matches the ECDSA host key.\r\ndebug1: Found key in /root/.ssh/known_hosts:1\r\ndebug1: ssh_ecdsa_verify: signature correct\r\ndebug1: SSH2_MSG_NEWKEYS sent\r\ndebug1: expecting SSH2_MSG_NEWKEYS\r\ndebug1: SSH2_MSG_NEWKEYS received\r\ndebug1: Roaming not allowed by server\r\ndebug1: SSH2_MSG_SERVICE_REQUEST sent\r\ndebug1: SSH2_MSG_SERVICE_ACCEPT received\r\ndebug1: Authentications that can continue: publickey,password\r\ndebug1: Next authentication method: publickey\r\ndebug1: Offering RSA public key: /root/.ssh/id_rsa\r\ndebug1: Server accepts key: pkalg ssh-rsa blen 279\r\ndebug1: read PEM private key done: type RSA\r\ndebug1: Authentication succeeded (publickey).\r\nAuthenticated to gitlab.XXXXX.XX ([162.XXX.XXX.XX]:2222).\r\ndebug1: channel 0: new [client-session]\r\ndebug1: Requesting no-more-sessions@openssh.com\r\ndebug1: Entering interactive session.\r\ndebug1: Remote: Forced command.\r\ndebug1: Remote: Port forwarding disabled.\r\ndebug1: Remote: X11 forwarding disabled.\r\ndebug1: Remote: Agent forwarding disabled.\r\ndebug1: Remote: Pty allocation disabled.\r\ndebug1: Remote: Forced command.\r\ndebug1: Remote: Port forwarding disabled.\r\ndebug1: Remote: X11 forwarding disabled.\r\ndebug1: Remote: Agent forwarding disabled.\r\ndebug1: Remote: Pty allocation disabled.\r\ndebug1: Sending environment.\r\ndebug1: Sending env LANG = en_US.UTF-8\r\nWelcome to Ubuntu 13.10 (GNU/Linux 3.11.0-12-generic x86_64)\r\n\r\n * Documentation:  https://help.ubuntu.com/\r\ndebug1: client_input_channel_req: channel 0 rtype exit-status reply 0\r\ndebug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0\r\ndebug1: channel 0: free: client-session, nchannels 1\r\nTransferred: sent 3248, received 3064 bytes, in 0.1 seconds\r\nBytes per second: sent 24439.8, received 23055.3\r\ndebug1: Exit status 254\r\n```\r\n\r\n## GitLab check\r\n$ sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production\r\n\r\n```\r\nChecking Environment ...\r\n\r\nGit configured for git user? ... yes\r\n\r\nChecking Environment ... Finished\r\n\r\nChecking GitLab Shell ...\r\n\r\nGitLab Shell version >= 1.7.9 ? ... OK (1.8.0)\r\nRepo base directory exists? ... yes\r\nRepo base directory is a symlink? ... no\r\nRepo base owned by git:git? ... yes\r\nRepo base access is drwxrws---? ... yes\r\nupdate hook up-to-date? ... yes\r\nupdate hooks in repos are links: ...\r\nAdministrator / Luver Bootstrap ... repository is empty\r\nRunning /home/git/gitlab-shell/bin/check\r\nCheck GitLab API access: OK\r\nCheck directories and files:\r\n        /home/git/repositories: OK\r\n        /home/git/.ssh/authorized_keys: OK\r\nTest redis-cli executable: redis-cli 2.6.13\r\nSend ping to redis server: PONG\r\ngitlab-shell self-check successful\r\n\r\nChecking GitLab Shell ... Finished\r\n\r\nChecking Sidekiq ...\r\n\r\nRunning? ... yes\r\nNumber of Sidekiq processes ... 1\r\n\r\nChecking Sidekiq ... Finished\r\n\r\nChecking LDAP ...\r\n\r\nLDAP is disabled in config/gitlab.yml\r\n\r\nChecking LDAP ... Finished\r\n\r\nChecking GitLab ...\r\n\r\nDatabase config exists? ... yes\r\nDatabase is SQLite ... no\r\nAll migrations up? ... yes\r\nGitLab config exists? ... yes\r\nGitLab config outdated? ... no\r\nLog directory writable? ... yes\r\nTmp directory writable? ... yes\r\nInit script exists? ... yes\r\nInit script up-to-date? ... yes\r\nprojects have namespace: ...\r\nAdministrator / Luver Bootstrap ... yes\r\nProjects have satellites? ...\r\nAdministrator / Luver Bootstrap ... can't create, repository is empty\r\nRedis version >= 2.0.0? ... yes\r\nYour git bin path is \"/usr/bin/git\"\r\nGit version >= 1.7.10 ? ... yes (1.8.3)\r\n\r\nChecking GitLab ... Finished\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/comments/182299815","html_url":"https://github.com/gitlabhq/gitlabhq/issues/6537#issuecomment-182299815","issue_url":"https://api.github.com/repos/gitlabhq/gitlabhq/issues/6537","id":182299815,"user":{"login":"KIVagant","id":517501,"avatar_url":"https://avatars.githubusercontent.com/u/517501?v=3","gravatar_id":"","url":"https://api.github.com/users/KIVagant","html_url":"https://github.com/KIVagant","followers_url":"https://api.github.com/users/KIVagant/followers","following_url":"https://api.github.com/users/KIVagant/following{/other_user}","gists_url":"https://api.github.com/users/KIVagant/gists{/gist_id}","starred_url":"https://api.github.com/users/KIVagant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KIVagant/subscriptions","organizations_url":"https://api.github.com/users/KIVagant/orgs","repos_url":"https://api.github.com/users/KIVagant/repos","events_url":"https://api.github.com/users/KIVagant/events{/privacy}","received_events_url":"https://api.github.com/users/KIVagant/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T10:28:31Z","updated_at":"2016-02-10T10:28:31Z","body":"Thank you, @renanvaz, your solution help me to resolve the same problem with [gitlab from omnibus](http://doc.gitlab.com/omnibus/docker/README.html). "}}