{"action":"created","issue":{"url":"https://api.github.com/repos/sckott/analogsea/issues/132","repository_url":"https://api.github.com/repos/sckott/analogsea","labels_url":"https://api.github.com/repos/sckott/analogsea/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/sckott/analogsea/issues/132/comments","events_url":"https://api.github.com/repos/sckott/analogsea/issues/132/events","html_url":"https://github.com/sckott/analogsea/issues/132","id":228109326,"number":132,"title":"SSH problem in docklet_pull (solved, but not ideal)","user":{"login":"berkorbay","id":5690139,"avatar_url":"https://avatars1.githubusercontent.com/u/5690139?v=3","gravatar_id":"","url":"https://api.github.com/users/berkorbay","html_url":"https://github.com/berkorbay","followers_url":"https://api.github.com/users/berkorbay/followers","following_url":"https://api.github.com/users/berkorbay/following{/other_user}","gists_url":"https://api.github.com/users/berkorbay/gists{/gist_id}","starred_url":"https://api.github.com/users/berkorbay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berkorbay/subscriptions","organizations_url":"https://api.github.com/users/berkorbay/orgs","repos_url":"https://api.github.com/users/berkorbay/repos","events_url":"https://api.github.com/users/berkorbay/events{/privacy}","received_events_url":"https://api.github.com/users/berkorbay/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-05-11T20:20:19Z","updated_at":"2017-05-24T22:10:25Z","closed_at":"2017-05-24T16:55:51Z","body":"Hi. I try to automate docklet creation and destroying. Though, I ran into some problems. I created my SSH key with a passphrase. I had DO to recognize it (by copy-pasting public key).\r\n\r\nFirst problem I encountered was on the CRAN version. (Just tried today) I had the following error.\r\n\r\n`Error in derive_pubkey(key) :RAW() can only be applied to a 'raw', not a 'list'`\r\n\r\nThen I installed devtools version. Everything is fine. I got the nicest warnings.\r\n\r\n```\r\nWaiting for authentication in browser...\r\nPress Esc/Ctrl + C to abort\r\nAuthentication complete.\r\nUsing default ssh keys: berk1\r\nNB: This costs $0.01488 / hour until you droplet_delete() it\r\n```\r\n\r\nWhen I tried `docklet_pull(\"rocker/hadleyverse\")` command, I got the following error.\r\n\r\n```\r\nWarning: Permanently added '198.199.97.135' (ECDSA) to the list of known hosts.\r\nPermission denied (publickey).\r\nError: ssh failed\r\nssh -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/var/folders/bt/kwy9rzkn519gcsqpsxbl76l40000gn/T//Rtmp2JYSuz/hosts root@198.199.97.135 'docker pull rocker/hadleyverse'\r\n```\r\n\r\nI tried to run same command again and got the following error.\r\n\r\n```\r\nError: ssh failed (publickey).\r\nssh -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/var/folders/bt/kwy9rzkn519gcsqpsxbl76l40000gn/T//Rtmp2JYSuz/hosts root@198.199.97.135 'docker pull rocker/hadleyverse'\r\n```\r\n\r\nI checked `keys()` and everything is fine. (Altered the fingerprint in the example, just in case.)\r\n\r\n```\r\n$berk1\r\n<key> berk1 (8371036)\r\n  Fingerprint: 3f:3b:f2:14:6c:41:c3:4f:21:2n:c8:65:de:ec:f0:f9\r\n```\r\n\r\nThen I tried to reach to the server from the terminal with the following prompt and got these messages. I was also asked my passphrase.\r\n\r\n```\r\nberkorbay$ ssh -i .ssh/id_rsa2 root@198.199.97.135\r\nWarning: Identity file .ssh/id_rsa2 not accessible: No such file or directory.\r\nThe authenticity of host '198.199.97.135 (198.199.97.135)' can't be established.\r\nECDSA key fingerprint is SHA256:lLqhCRycTFD9Hcb1n+jWyodAVsoWS6w4D+21ZXhWhLM.\r\nAre you sure you want to continue connecting (yes/no)? yes\r\nWarning: Permanently added '198.199.97.135' (ECDSA) to the list of known hosts.\r\nSaving password to keychain failed\r\nIdentity added: /Users/berkorbay/.ssh/id_rsa ((null))\r\nWelcome to Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-64-generic x86_64)\r\n```\r\n\r\nWhen I returned to R and ran `docklet_pull(\"rocker/hadleyverse\")` it performed without a problem. \r\n\r\nYet, it is not an ideal solution. This way I cannot automate DO processes. Is there a way to make it more seamless?\r\n"},"comment":{"url":"https://api.github.com/repos/sckott/analogsea/issues/comments/303866147","html_url":"https://github.com/sckott/analogsea/issues/132#issuecomment-303866147","issue_url":"https://api.github.com/repos/sckott/analogsea/issues/132","id":303866147,"user":{"login":"sckott","id":577668,"avatar_url":"https://avatars2.githubusercontent.com/u/577668?v=3","gravatar_id":"","url":"https://api.github.com/users/sckott","html_url":"https://github.com/sckott","followers_url":"https://api.github.com/users/sckott/followers","following_url":"https://api.github.com/users/sckott/following{/other_user}","gists_url":"https://api.github.com/users/sckott/gists{/gist_id}","starred_url":"https://api.github.com/users/sckott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sckott/subscriptions","organizations_url":"https://api.github.com/users/sckott/orgs","repos_url":"https://api.github.com/users/sckott/repos","events_url":"https://api.github.com/users/sckott/events{/privacy}","received_events_url":"https://api.github.com/users/sckott/received_events","type":"User","site_admin":false},"created_at":"2017-05-24T22:10:25Z","updated_at":"2017-05-24T22:10:25Z","body":"great, glad it works @berkorbay !"}}
{"actor":{"display_login":"sckott"}}