ruby on rails - ssh connection to git failing -


i opening question asked before problem seems pretty linked ssh.

  1. i have installed gitlab in /home/myuser/gitlab.
  2. i created rep test
  3. following instructions, added remote git@localhost:root/testing.git (gitlab's server runs on port 3000)

now, when try push, error message:

$ git push -u origin master     ssh: not resolve hostname mylocalhost: nodename nor servname provided, or not known fatal: not read remote repository.  please make sure have correct access rights , repository exists. 

now, found there problem ssh connect. here's /home/myhome/.ssh/config file

host mylocalhost hostname localhost port 3000 user git identityfile /home/myuser/.ssh/id_rsa.pub 

when run ssh mylocalhost message

ssh_exchange_identification: connection closed remote host 

on verbose mode, seems connection established on right port porcess fails here debug1: ssh_exchange_identification: http/1.1 400 bad request. tried update /system/library/launchdaemons/ssh.plist (i using osx) forward port listening 3000 gitlab webrick rails server won't run anymore. l tried change git remote set-url origin mylocalhost:testing.git

gitlab's http interface running on port 3000, ssh isn't running there push repository to.

the message of ssh: connect host localhost port 22: connection refused means ssh client unable connect ssh server @ localhost on port 22. i'd ensure you've installed gitlab correctly , gitlab running correctly. ensuring ssh server running , able accept connections on port 22.


Comments