Skip to contentSkip to conversation

Connection refused on port 22 when tried to push go git server

Pls Help hudarsono 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore

hudarsono

author
#0 lore raw

Hi, I am new to git, and trying to install n use on my own server, but couldn't make it to works till now.

I have installed git and gitosis successfully on server and can clone the gitosis-admin.git. Then I tried to change the gitosis.conf to be something like :

[group gitosis-admin]
writable = gitosis-admin mobapp
members = [email protected]
[email protected]

[group personal]
writable = mobapp
members = [email protected]

and create new repo on server with name mobapp.git.

But when I want to push my local copy to server after run the git remote add ssh://[email protected]:mobapp.git

I got permision denied:

Hudarsono-MacBook:mobapp hudarsono$ git push
ssh: connect to host port 22: Connection refused
fatal: The remote end hung up unexpectedly

I don't understand, because I use the same machine as when I clone the gitosis-admin.

Any help will be very appreciated.

Signature · 2 lines
View this message in context: http://n2.nabble.com/Pls-Help-Connection-refused-on-port-22-when-tried-to-push-go-git-server-tp4707012p4707012.html
Sent from the git mailing list archive at Nabble.com.