{"action":"opened","issue":{"url":"https://api.github.com/repos/dokku/dokku/issues/2368","repository_url":"https://api.github.com/repos/dokku/dokku","labels_url":"https://api.github.com/repos/dokku/dokku/issues/2368/labels{/name}","comments_url":"https://api.github.com/repos/dokku/dokku/issues/2368/comments","events_url":"https://api.github.com/repos/dokku/dokku/issues/2368/events","html_url":"https://github.com/dokku/dokku/issues/2368","id":170804179,"number":2368,"title":"Running \"dokku:ssh-keys add\" via dokku_client.sh puts wrong key name","user":{"login":"IlyaSemenov","id":128121,"avatar_url":"https://avatars.githubusercontent.com/u/128121?v=3","gravatar_id":"","url":"https://api.github.com/users/IlyaSemenov","html_url":"https://github.com/IlyaSemenov","followers_url":"https://api.github.com/users/IlyaSemenov/followers","following_url":"https://api.github.com/users/IlyaSemenov/following{/other_user}","gists_url":"https://api.github.com/users/IlyaSemenov/gists{/gist_id}","starred_url":"https://api.github.com/users/IlyaSemenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IlyaSemenov/subscriptions","organizations_url":"https://api.github.com/users/IlyaSemenov/orgs","repos_url":"https://api.github.com/users/IlyaSemenov/repos","events_url":"https://api.github.com/users/IlyaSemenov/events{/privacy}","received_events_url":"https://api.github.com/users/IlyaSemenov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-12T05:58:50Z","updated_at":"2016-08-12T05:58:50Z","closed_at":null,"body":"Description of problem:\r\n\r\nRunning `dokku:ssh-keys add` via dokku_client.sh silently puts the app name instead of the key name:\r\n\r\n```console\r\n$ cat gitlab.pub | dokku ssh-keys:add gitlab\r\nSHA256:CuDHNdVnVaN35nwLdaoAfEalepXJ9ispgrLEUeS24iw\r\n\r\nroot@dokku:~# tail -n1 /home/dokku/.ssh/authorized_keys\r\ncommand=\"FINGERPRINT=SHA256:CuDHNdVnVaN35nwLdaoAfEalepXJ9ispgrLEUeS24iw NAME=\\\"myapp\\\" ... gitlab\r\n```\r\n\r\nNote that `NAME` is set to \"myapp\" instead of \"gitlab\".\r\n\r\nRunning the same command via SSH works fine:\r\n\r\n```console\r\n$ cat gitlab.pub | ssh dokku@dokku.myapp.com ssh-keys:add gitlab\r\nSHA256:CuDHNdVnVaN35nwLdaoAfEalepXJ9ispgrLEUeS24iw\r\n\r\nroot@dokku:~# tail -n1 /home/dokku/.ssh/authorized_keys\r\ncommand=\"FINGERPRINT=SHA256:CuDHNdVnVaN35nwLdaoAfEalepXJ9ispgrLEUeS24iw NAME=\\\"gitlab\\\" ... gitlab\r\n```\r\n\r\nOutput of the following commands:\r\n\r\n- `uname -a`: Linux dokku 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux\r\n- `sigil -v`: 0.4.0\r\n- `dokku version`: 0.7.0\r\n- `dokku plugin | grep ssh`: ssh-keys             0.6.4 enabled\r\n- `dpkg -l | grep sshcommand`: ii  sshcommand                         0.5.0                           amd64"}}
{"actor":{"display_login":"IlyaSemenov"}}