{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3135","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3135/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3135/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3135/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/3135","id":57352458,"number":3135,"title":"SSH with two-factor authentication ","user":{"login":"cepages","id":5259830,"avatar_url":"https://avatars.githubusercontent.com/u/5259830?v=3","gravatar_id":"","url":"https://api.github.com/users/cepages","html_url":"https://github.com/cepages","followers_url":"https://api.github.com/users/cepages/followers","following_url":"https://api.github.com/users/cepages/following{/other_user}","gists_url":"https://api.github.com/users/cepages/gists{/gist_id}","starred_url":"https://api.github.com/users/cepages/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cepages/subscriptions","organizations_url":"https://api.github.com/users/cepages/orgs","repos_url":"https://api.github.com/users/cepages/repos","events_url":"https://api.github.com/users/cepages/events{/privacy}","received_events_url":"https://api.github.com/users/cepages/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-11T17:59:18Z","updated_at":"2015-11-18T20:07:14Z","closed_at":"2015-02-11T18:14:06Z","body":"Hi \r\n\r\nI'm using the two fact authentication in git hub, I'm using 10.10.2  and Cocoa Pods 0.35.0\r\n\r\nI have a private pod, which I've updated and created a new version and now I'd like to lint the podSpec file. The main problem is I can't use ssh in the source. \r\n```\r\n  s.source = {\r\n    :git => 'git@github.com:company/repo.git',\r\n    :tag => '0.3.0'\r\n  }\r\n```\r\n\r\nThe problem is when we try to pass the validation we get a ruby error:\r\n\r\n```\r\n** BUILD SUCCEEDED **\r\n\r\n    - WARN  | [source] Git SSH URLs will NOT work for people behind firewalls configured to only allow HTTP, therefore HTTPS is preferred.\r\n\r\n[!] The spec did not pass validation.\r\n\r\n/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/command/spec.rb:112:in `run'\r\n/Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:271:in `run'\r\n/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/command.rb:45:in `run'\r\n/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/bin/pod:43:in `<top (required)>'\r\n/usr/bin/pod:23:in `load'\r\n/usr/bin/pod:23:in `<main>\r\n```\r\n\r\nIt's working with https but I have to use a token and set up git credential helper. It's not a bad solution but I'd like to use ssh.\r\n\r\nI've checked this with two different projects with the same problem.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/157846571","html_url":"https://github.com/CocoaPods/CocoaPods/issues/3135#issuecomment-157846571","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3135","id":157846571,"user":{"login":"ssoper","id":12748,"avatar_url":"https://avatars.githubusercontent.com/u/12748?v=3","gravatar_id":"","url":"https://api.github.com/users/ssoper","html_url":"https://github.com/ssoper","followers_url":"https://api.github.com/users/ssoper/followers","following_url":"https://api.github.com/users/ssoper/following{/other_user}","gists_url":"https://api.github.com/users/ssoper/gists{/gist_id}","starred_url":"https://api.github.com/users/ssoper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssoper/subscriptions","organizations_url":"https://api.github.com/users/ssoper/orgs","repos_url":"https://api.github.com/users/ssoper/repos","events_url":"https://api.github.com/users/ssoper/events{/privacy}","received_events_url":"https://api.github.com/users/ssoper/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T20:07:14Z","updated_at":"2015-11-18T20:07:14Z","body":"Concur. I don't think use of https vs. ssh for the repo url should rise to the level of generating a warning. If folks are trying to access these behind firewalls the problem domain is on them."}}