Question

I am trying to pull or clone a git repo from my joyent smartmachine no.de thru putty. I can connect to my sever easily, but as soon as I write:

git pull git@github.com/accoutName/repo , I get the following error:

Permission denied (publickey). fatal: The remote end hung up unexpectedly

How do I find my smartmachine ssh key to copy and paste it in my github account settings?

Thank you.

Was it helpful?

Solution

If you want to use ssh to pull your repo, you need to add your machine's public rsa key to your github account. If you can create one on your smart machine, it should work. You shouldn't need to use ssh unless you want to read AND write though. I believe github provides read only urls to your repo witch might be a better solution.

When it comes down to it, the way you're supposed to deploy to your smart machine, is to push to the repo that's set up on it. As far as I know, you can't deploy by having it pull from another repo.

EDIT: Some resources that will help out a lot would be http://help.github.com/ and http://wiki.joyent.com/display/node/Node.js+Home

OTHER TIPS

Workflow is like this:

git clone $REPO $DIR
cd $DIR
git remote add joyent $NODEURL
git push joyent

Not like this:

ssh $NODEURL
git clone $REPO

look in ~/.ssh/id_dsa.pub or ~/.ssh/id_rsa.pub and upload those to github.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top