{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixops/issues/364","labels_url":"https://api.github.com/repos/NixOS/nixops/issues/364/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixops/issues/364/comments","events_url":"https://api.github.com/repos/NixOS/nixops/issues/364/events","html_url":"https://github.com/NixOS/nixops/pull/364","id":118471901,"number":364,"title":"backends/none: don't use _ssh_private_key if its corresponding public key hasn't been deployed yet","user":{"login":"basvandijk","id":576355,"avatar_url":"https://avatars.githubusercontent.com/u/576355?v=3","gravatar_id":"","url":"https://api.github.com/users/basvandijk","html_url":"https://github.com/basvandijk","followers_url":"https://api.github.com/users/basvandijk/followers","following_url":"https://api.github.com/users/basvandijk/following{/other_user}","gists_url":"https://api.github.com/users/basvandijk/gists{/gist_id}","starred_url":"https://api.github.com/users/basvandijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basvandijk/subscriptions","organizations_url":"https://api.github.com/users/basvandijk/orgs","repos_url":"https://api.github.com/users/basvandijk/repos","events_url":"https://api.github.com/users/basvandijk/events{/privacy}","received_events_url":"https://api.github.com/users/basvandijk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"aszlig","id":192147,"avatar_url":"https://avatars.githubusercontent.com/u/192147?v=3","gravatar_id":"","url":"https://api.github.com/users/aszlig","html_url":"https://github.com/aszlig","followers_url":"https://api.github.com/users/aszlig/followers","following_url":"https://api.github.com/users/aszlig/following{/other_user}","gists_url":"https://api.github.com/users/aszlig/gists{/gist_id}","starred_url":"https://api.github.com/users/aszlig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aszlig/subscriptions","organizations_url":"https://api.github.com/users/aszlig/orgs","repos_url":"https://api.github.com/users/aszlig/repos","events_url":"https://api.github.com/users/aszlig/events{/privacy}","received_events_url":"https://api.github.com/users/aszlig/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-11-23T21:05:15Z","updated_at":"2016-01-28T21:21:38Z","closed_at":"2015-12-08T02:57:03Z","pull_request":{"url":"https://api.github.com/repos/NixOS/nixops/pulls/364","html_url":"https://github.com/NixOS/nixops/pull/364","diff_url":"https://github.com/NixOS/nixops/pull/364.diff","patch_url":"https://github.com/NixOS/nixops/pull/364.patch"},"body":"@aszlig I think this should fix #361. I haven't tested it yet but will do that tomorrow.\r\n\r\nThe boolean attribute `none.sshPublicKeyDeployed` is added to the\r\nNoneState and defaults to False. It indicates whether the SSH public key\r\nhas been deployed to the target. If it's False the `get_ssh_flags()`\r\nfunction will not set the corresponding private key as the identity.\r\n\r\n`none.sshPublicKeyDeployed` will be set to True after activating the\r\nconfiguration. From then on `get_ssh_flags()` will set the identity to the\r\ncorresponding private key allowing nixops to authenticate itself using\r\nthe keypair stored in its DB."},"comment":{"url":"https://api.github.com/repos/NixOS/nixops/issues/comments/176425538","html_url":"https://github.com/NixOS/nixops/pull/364#issuecomment-176425538","issue_url":"https://api.github.com/repos/NixOS/nixops/issues/364","id":176425538,"user":{"login":"basvandijk","id":576355,"avatar_url":"https://avatars.githubusercontent.com/u/576355?v=3","gravatar_id":"","url":"https://api.github.com/users/basvandijk","html_url":"https://github.com/basvandijk","followers_url":"https://api.github.com/users/basvandijk/followers","following_url":"https://api.github.com/users/basvandijk/following{/other_user}","gists_url":"https://api.github.com/users/basvandijk/gists{/gist_id}","starred_url":"https://api.github.com/users/basvandijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basvandijk/subscriptions","organizations_url":"https://api.github.com/users/basvandijk/orgs","repos_url":"https://api.github.com/users/basvandijk/repos","events_url":"https://api.github.com/users/basvandijk/events{/privacy}","received_events_url":"https://api.github.com/users/basvandijk/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T21:21:37Z","updated_at":"2016-01-28T21:21:37Z","body":"@domenkozar if `-i` is set and the corresponding public key hasn't been deployed yet SSH won't be able to sign in."}}