{"action":"closed","issue":{"url":"https://api.github.com/repos/cuviper/ssh-pageant/issues/40","labels_url":"https://api.github.com/repos/cuviper/ssh-pageant/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/cuviper/ssh-pageant/issues/40/comments","events_url":"https://api.github.com/repos/cuviper/ssh-pageant/issues/40/events","html_url":"https://github.com/cuviper/ssh-pageant/issues/40","id":128771245,"number":40,"title":"Adding the same key multiple times gives an error","user":{"login":"AndreasLoow","id":9025304,"avatar_url":"https://avatars.githubusercontent.com/u/9025304?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreasLoow","html_url":"https://github.com/AndreasLoow","followers_url":"https://api.github.com/users/AndreasLoow/followers","following_url":"https://api.github.com/users/AndreasLoow/following{/other_user}","gists_url":"https://api.github.com/users/AndreasLoow/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreasLoow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreasLoow/subscriptions","organizations_url":"https://api.github.com/users/AndreasLoow/orgs","repos_url":"https://api.github.com/users/AndreasLoow/repos","events_url":"https://api.github.com/users/AndreasLoow/events{/privacy}","received_events_url":"https://api.github.com/users/AndreasLoow/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-26T09:33:46Z","updated_at":"2016-01-26T19:07:56Z","closed_at":"2016-01-26T19:07:56Z","body":"It seems that there's a problem with adding the same key multiple times. ssh-pageant doesn't work in the same way as the standard ssh-agent in this respect. Is this the expected behavior? Wouldn't it be better to replicate the standard ssh-agent's behavior here?\r\n\r\nFor example, starting with a Pageant instance without any keys:\r\n\r\n```\r\n> eval $(ssh-agent)\r\nAgent pid 1200\r\n\r\n> ssh-add\r\nEnter passphrase for /home/andreas/.ssh/id_rsa:\r\nIdentity added: /home/andreas/.ssh/id_rsa (/home/andreas/.ssh/id_rsa)\r\n\r\n> ssh-add\r\nEnter passphrase for /home/andreas/.ssh/id_rsa:\r\nIdentity added: /home/andreas/.ssh/id_rsa (/home/andreas/.ssh/id_rsa)\r\n\r\n> eval $(ssh-agent -k)\r\nAgent pid 988 killed\r\n\r\n> eval $(ssh-pageant)\r\nssh-pageant pid 7756\r\n\r\n> ssh-add\r\nEnter passphrase for /home/andreas/.ssh/id_rsa:\r\nIdentity added: /home/andreas/.ssh/id_rsa (/home/andreas/.ssh/id_rsa)\r\n\r\n> ssh-add\r\nEnter passphrase for /home/andreas/.ssh/id_rsa:\r\nCould not add identity \"/home/andreas/.ssh/id_rsa\": agent refused operation\r\n```\r\n"}}