small medium large xlarge

09 Jul 2012, 12:26
Andrew Gellene (33 posts)

ebook 22 page 240 I get all the way to this point:

git push origin master

and I get the error:

ssh: Could not resolve hostname host: nodename nor servname provided, or not known fatal: The remote end hung up unexpectedly

I can ssh into my server created on the mac. Any hints to what I am doing wrong? Or items to test/check?

09 Jul 2012, 14:12
Sam Ruby (633 posts)

First issue:

git remote rm origin

Then re-issue:

git remote add origin ssh://user@host/~/git/depot.git

… but this time, substitute your user name for user and your (remote) host name for host.

12 Jul 2012, 12:02
Andrew Gellene (33 posts)

Thank you Sam.

This worked I think… has some command not found errors:

/.rvm/scripts/base: line 62: uname: command not found

looks like something to do with rvm.

But for the record my issue which Sam nudged me to google more about is what is the username I need to put in here… it turned out to be the username on my mac: akkdio

I also called my host name: so for those in a similar situation the full command for me was:

git remote add origin ssh://

Hope that helps someone. Now on to Capify . fun fun…

10 Jul 2012, 17:31
Sam Ruby (633 posts)

Uname should be provided with Mac OSX:

31 Jul 2012, 11:46
Andrew Gellene (33 posts)

for those with a similar issue - I had to re-install rvm from scratch and then this issue went away.

You must be logged in to comment