no.de pull from github

315 views Asked by At

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 [email protected]/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.

3

There are 3 answers

1
btleffler On BEST ANSWER

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

5
Hello71 On

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
0
chovy On

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