{"action":"created","issue":{"url":"https://api.github.com/repos/dokku/dokku/issues/2527","repository_url":"https://api.github.com/repos/dokku/dokku","labels_url":"https://api.github.com/repos/dokku/dokku/issues/2527/labels{/name}","comments_url":"https://api.github.com/repos/dokku/dokku/issues/2527/comments","events_url":"https://api.github.com/repos/dokku/dokku/issues/2527/events","html_url":"https://github.com/dokku/dokku/issues/2527","id":194844548,"number":2527,"title":"how to git push on aws based dokku server","user":{"login":"LabN36","id":10628287,"avatar_url":"https://avatars.githubusercontent.com/u/10628287?v=3","gravatar_id":"","url":"https://api.github.com/users/LabN36","html_url":"https://github.com/LabN36","followers_url":"https://api.github.com/users/LabN36/followers","following_url":"https://api.github.com/users/LabN36/following{/other_user}","gists_url":"https://api.github.com/users/LabN36/gists{/gist_id}","starred_url":"https://api.github.com/users/LabN36/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LabN36/subscriptions","organizations_url":"https://api.github.com/users/LabN36/orgs","repos_url":"https://api.github.com/users/LabN36/repos","events_url":"https://api.github.com/users/LabN36/events{/privacy}","received_events_url":"https://api.github.com/users/LabN36/received_events","type":"User","site_admin":false},"labels":[{"id":341590516,"url":"https://api.github.com/repos/dokku/dokku/labels/type:%20support","name":"type: support","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-12-11T17:37:26Z","updated_at":"2016-12-11T18:57:10Z","closed_at":null,"body":"**Objective I want to push a hello world express server on dokku server (AWS Ubuntu)\r\nNote: I have window machine on my local** \r\n\r\n**1.** created Ubuntu 14.x in aws and created foo.pem file\r\n\r\n\r\n**2.** now i opend my window localterminal and typed\r\n**ssh -i foo.pem ubuntu@35.154.69.145** \r\nsuccessfully ssh into server\r\n\r\n\r\n3. installed dokku on ubuntu by this command\r\n**wget https://raw.githubusercontent.com/dokku/dokku/v0.7.2/bootstrap.sh**\r\nthen **sudo DOKKU_TAG=v0.7.2 bash bootstrap.sh**\r\n\r\n4. now dokku is installed on ubuntu server \r\n\r\n4.1 when i hit IP **35.154.69.145** in browser a dokku page is opened asking for public key \r\nso i went to this directory in my local computer **C:\\Users\\rishabhagrawal\\.ssh and opened id_rsa.pub** file which seems like this\r\n\r\nssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOf5zqKXvDzcHOPi+C2qMj42iVZ8KIpgEu5FxjktkWcBTVJL84D0W71TP4khTX8g76okFU7otLQHyr08h71NxNl223mHmnhvIxyReA5n9A4/azu+nwZ2F4p92TrioPMRNPz+TvMdOxra3fsDbfM2HzZZE4dCtiu+dGHTS5lhl5Mpy7XZY2paEosvotU/faBs3DKPniC+Vh1yVuWnP/m273JUaYHv/XslSgtopbPtwAWm2EJmoJruaVdoAwxGQJwFnBuZOTKAX8P8JQcMH93eqy4JcguIRWWRZylLQEC1QYxIMMFUvFiU4sU+255PJ6J2cajHRUhOjacacy3Sw31CUZ rishabhagrawal@Rishab4231\r\n\r\n\r\nafter clicking ok the dokku page dissappear and i thought my public key might be added successfully\r\n\r\nbut when in run this command **dokku:ssh-keys:list** after ssh into server i got **no public key found**\r\n\r\nso i think i should run **dokku:ssh-keys:add command**\r\n**Note:** this is my location where my public key is exist in my local machine C:\\\\Users\\\\rishabhagrawal\\\\.ssh\\\\id_rsa.pub\r\n\r\ni run **sudo dokku ssh-keys:add admin C:\\Users\\rishabhagrawal\\.ssh\\id_rsa.pub** from my local machine after ssh \r\n**output** cat: C:Usersrishabhagrawal\\\\.sshid_rsa.pub: no such file or directory\r\n\r\ni run this sudo dokku ssh-keys:add admin C:\\\\Users\\\\rishabhagrawal\\\\.ssh\\\\id_rsa.pub\r\n**output** cat: C:\\Users\\rishabhagrawal\\.ssh\\id_rsa.pub: no such file or directory\r\n\r\n\r\ni run this sudo dokku ssh-keys:add admin C:/Users/rishabhagrawal/.ssh/id_rsa.pub\r\n**output** cat: C:/Users/rishabhagrawal/.ssh/id_rsa.pub: no such file or directory\r\n\r\ni run this sudo dokku ssh-keys:add admin C://Users//rishabhagrawal//.ssh//id_rsa.pub\r\n**output** cat: C://Users//rishabhagrawal//.ssh//id_rsa.pub: no such file or directory\r\n\r\n\r\nafter all this attempt i go this this link\r\nhttp://stackoverflow.com/questions/4632749/how-to-push-to-git-on-ec2\r\nthey said To copy your local ssh key to amazon try this\r\ncat ~/.ssh/id_?sa.pub | ssh -i amazon-generated-key.pem ec2-user@amazon-instance-public-dns \"cat >> .ssh/authorized_keys\"\r\n\r\nso in my case i run this from my lcoal machine\r\n**cat C:\\Users\\rishabhagrawal\\.ssh\\id_rsa.pub | ssh -i fbm.pem ubuntu@35.154.69.145 \"cat >> .ssh/authorized_keys\"**\r\n**after running this command i got nothing in the terminal** \r\n\r\ni thought my key might be added on the dokku\r\nso i run **dokku ssh-keys:list to check this** \r\noutput **/home/dokku/.ssh/authorized_keys failed ssh-keygen check.**\r\n\r\n**5.** after ssh into server from my local machine i run this command to check for the key\r\n**cd /home/dokku/.ssh\r\nthen nano authorized_key**\r\nafter this i got a file opend like this \r\ncommand=\"FINGERPRINT=4b:5d:b0:27:80:9f:cb:ca:0a:95:b8:20:4d:25:b5:48 NAME=\\\"admin\\\" `cat /home/dokku/.sshcommand` $SSH_ORIGINAL_COMMAND\",no-agent-forwading,no-user-rc,no-X11-forwarding,no-port-farwarding\r\n no-port-farwarding ,no-agent-forwading,no-X11-forwarding,command=\"echo 'Please login as the user ubuntu rather than the user root echo sleet 10 ssh-rsa A_LONG_STRING_KEY fbm\r\n \r\n**Note:**i think this key is not as i provided in the above \r\n\r\n\r\n**6.** I want to push a hello world express server on dokku \r\nso i cloned a hello world repository then run this command from the repository\r\n\r\n\r\n**git remote add dokku dokku@35.154.69.145:test**\r\nthen i run **git push dokku master**\r\noutput: **permission denied (publickey)**\r\n**fatal could not read from remote repository\r\nplease make sure you have the correct access right and the repository exist**\r\n\r\nthen i also run this command\r\n**git remote add ubuntu ubuntu@35.154.69.145:test**\r\nthen i run **git push ubuntu master**\r\n\r\nagain i got the same error\r\n\r\n\r\n\r\n\r\ncan anyone guide me what is the problem"},"comment":{"url":"https://api.github.com/repos/dokku/dokku/issues/comments/266300002","html_url":"https://github.com/dokku/dokku/issues/2527#issuecomment-266300002","issue_url":"https://api.github.com/repos/dokku/dokku/issues/2527","id":266300002,"user":{"login":"joshmanders","id":352113,"avatar_url":"https://avatars.githubusercontent.com/u/352113?v=3","gravatar_id":"","url":"https://api.github.com/users/joshmanders","html_url":"https://github.com/joshmanders","followers_url":"https://api.github.com/users/joshmanders/followers","following_url":"https://api.github.com/users/joshmanders/following{/other_user}","gists_url":"https://api.github.com/users/joshmanders/gists{/gist_id}","starred_url":"https://api.github.com/users/joshmanders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshmanders/subscriptions","organizations_url":"https://api.github.com/users/joshmanders/orgs","repos_url":"https://api.github.com/users/joshmanders/repos","events_url":"https://api.github.com/users/joshmanders/events{/privacy}","received_events_url":"https://api.github.com/users/joshmanders/received_events","type":"User","site_admin":false},"created_at":"2016-12-11T18:57:10Z","updated_at":"2016-12-11T18:57:10Z","body":"Okay, open that file up in `vi` and delete the contents of it."}}
{"actor":{"display_login":"joshmanders"}}