{"action":"closed","number":133,"pull_request":{"url":"https://api.github.com/repos/ktbyers/netmiko/pulls/133","id":51055011,"html_url":"https://github.com/ktbyers/netmiko/pull/133","diff_url":"https://github.com/ktbyers/netmiko/pull/133.diff","patch_url":"https://github.com/ktbyers/netmiko/pull/133.patch","issue_url":"https://api.github.com/repos/ktbyers/netmiko/issues/133","number":133,"state":"closed","locked":false,"title":"OpenSSH Configuration Support (#131)","user":{"login":"coxley","id":8285973,"avatar_url":"https://avatars.githubusercontent.com/u/8285973?v=3","gravatar_id":"","url":"https://api.github.com/users/coxley","html_url":"https://github.com/coxley","followers_url":"https://api.github.com/users/coxley/followers","following_url":"https://api.github.com/users/coxley/following{/other_user}","gists_url":"https://api.github.com/users/coxley/gists{/gist_id}","starred_url":"https://api.github.com/users/coxley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coxley/subscriptions","organizations_url":"https://api.github.com/users/coxley/orgs","repos_url":"https://api.github.com/users/coxley/repos","events_url":"https://api.github.com/users/coxley/events{/privacy}","received_events_url":"https://api.github.com/users/coxley/received_events","type":"User","site_admin":false},"body":"This has been implemented by outsourcing paramiko.SSHClient.connect(**kwargs)\r\nto a private method ._return_config()\r\n\r\nNot only will this give a more central place to tweak client configuration in\r\nthe future, but it serves a nice place to do some conditions and openssh cfg\r\nfile reading thanks to paramiko.SSHConfig\r\n\r\nAs of this commit, ssh_config_path is an __init__ arg defaulting to ~/.ssh/config.\r\nIf an unparsable ssh config is passed, Exception will be thrown. We can easily\r\ncapture this and error something better if needed, but it's a straightfwd error.\r\n\r\nOn top of proxycommand support, there is now support for Host Aliasing within\r\na user SSH config. The only drawback/discussion might need of this is whether\r\nto log the provided hostname or the resolved one (and port).\r\n\r\nUsername will also be favored from the config if provided under the Host block.","created_at":"2015-11-18T08:28:31Z","updated_at":"2015-12-04T23:03:31Z","closed_at":"2015-12-04T23:03:31Z","merged_at":"2015-12-04T23:03:31Z","merge_commit_sha":"cd8085dd6a2451a829e654f4b34c67b36376e923","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ktbyers/netmiko/pulls/133/commits","review_comments_url":"https://api.github.com/repos/ktbyers/netmiko/pulls/133/comments","review_comment_url":"https://api.github.com/repos/ktbyers/netmiko/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ktbyers/netmiko/issues/133/comments","statuses_url":"https://api.github.com/repos/ktbyers/netmiko/statuses/99ccad7d242b39c03cd57c7182a57d8f1fcfadb0","head":{"label":"coxley:proxycommand","ref":"proxycommand","sha":"99ccad7d242b39c03cd57c7182a57d8f1fcfadb0","user":{"login":"coxley","id":8285973,"avatar_url":"https://avatars.githubusercontent.com/u/8285973?v=3","gravatar_id":"","url":"https://api.github.com/users/coxley","html_url":"https://github.com/coxley","followers_url":"https://api.github.com/users/coxley/followers","following_url":"https://api.github.com/users/coxley/following{/other_user}","gists_url":"https://api.github.com/users/coxley/gists{/gist_id}","starred_url":"https://api.github.com/users/coxley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coxley/subscriptions","organizations_url":"https://api.github.com/users/coxley/orgs","repos_url":"https://api.github.com/users/coxley/repos","events_url":"https://api.github.com/users/coxley/events{/privacy}","received_events_url":"https://api.github.com/users/coxley/received_events","type":"User","site_admin":false},"repo":{"id":46377349,"name":"netmiko","full_name":"coxley/netmiko","owner":{"login":"coxley","id":8285973,"avatar_url":"https://avatars.githubusercontent.com/u/8285973?v=3","gravatar_id":"","url":"https://api.github.com/users/coxley","html_url":"https://github.com/coxley","followers_url":"https://api.github.com/users/coxley/followers","following_url":"https://api.github.com/users/coxley/following{/other_user}","gists_url":"https://api.github.com/users/coxley/gists{/gist_id}","starred_url":"https://api.github.com/users/coxley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coxley/subscriptions","organizations_url":"https://api.github.com/users/coxley/orgs","repos_url":"https://api.github.com/users/coxley/repos","events_url":"https://api.github.com/users/coxley/events{/privacy}","received_events_url":"https://api.github.com/users/coxley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/coxley/netmiko","description":"Multi-vendor library to simplify Paramiko SSH connections to network devices","fork":true,"url":"https://api.github.com/repos/coxley/netmiko","forks_url":"https://api.github.com/repos/coxley/netmiko/forks","keys_url":"https://api.github.com/repos/coxley/netmiko/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coxley/netmiko/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coxley/netmiko/teams","hooks_url":"https://api.github.com/repos/coxley/netmiko/hooks","issue_events_url":"https://api.github.com/repos/coxley/netmiko/issues/events{/number}","events_url":"https://api.github.com/repos/coxley/netmiko/events","assignees_url":"https://api.github.com/repos/coxley/netmiko/assignees{/user}","branches_url":"https://api.github.com/repos/coxley/netmiko/branches{/branch}","tags_url":"https://api.github.com/repos/coxley/netmiko/tags","blobs_url":"https://api.github.com/repos/coxley/netmiko/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coxley/netmiko/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coxley/netmiko/git/refs{/sha}","trees_url":"https://api.github.com/repos/coxley/netmiko/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coxley/netmiko/statuses/{sha}","languages_url":"https://api.github.com/repos/coxley/netmiko/languages","stargazers_url":"https://api.github.com/repos/coxley/netmiko/stargazers","contributors_url":"https://api.github.com/repos/coxley/netmiko/contributors","subscribers_url":"https://api.github.com/repos/coxley/netmiko/subscribers","subscription_url":"https://api.github.com/repos/coxley/netmiko/subscription","commits_url":"https://api.github.com/repos/coxley/netmiko/commits{/sha}","git_commits_url":"https://api.github.com/repos/coxley/netmiko/git/commits{/sha}","comments_url":"https://api.github.com/repos/coxley/netmiko/comments{/number}","issue_comment_url":"https://api.github.com/repos/coxley/netmiko/issues/comments{/number}","contents_url":"https://api.github.com/repos/coxley/netmiko/contents/{+path}","compare_url":"https://api.github.com/repos/coxley/netmiko/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coxley/netmiko/merges","archive_url":"https://api.github.com/repos/coxley/netmiko/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coxley/netmiko/downloads","issues_url":"https://api.github.com/repos/coxley/netmiko/issues{/number}","pulls_url":"https://api.github.com/repos/coxley/netmiko/pulls{/number}","milestones_url":"https://api.github.com/repos/coxley/netmiko/milestones{/number}","notifications_url":"https://api.github.com/repos/coxley/netmiko/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coxley/netmiko/labels{/name}","releases_url":"https://api.github.com/repos/coxley/netmiko/releases{/id}","created_at":"2015-11-17T21:43:25Z","updated_at":"2015-11-17T21:43:26Z","pushed_at":"2015-12-04T08:59:13Z","git_url":"git://github.com/coxley/netmiko.git","ssh_url":"git@github.com:coxley/netmiko.git","clone_url":"https://github.com/coxley/netmiko.git","svn_url":"https://github.com/coxley/netmiko","homepage":null,"size":415,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ktbyers:master","ref":"master","sha":"936ae7312f632b6f6d1a4e84afe047f000a61b57","user":{"login":"ktbyers","id":899716,"avatar_url":"https://avatars.githubusercontent.com/u/899716?v=3","gravatar_id":"","url":"https://api.github.com/users/ktbyers","html_url":"https://github.com/ktbyers","followers_url":"https://api.github.com/users/ktbyers/followers","following_url":"https://api.github.com/users/ktbyers/following{/other_user}","gists_url":"https://api.github.com/users/ktbyers/gists{/gist_id}","starred_url":"https://api.github.com/users/ktbyers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktbyers/subscriptions","organizations_url":"https://api.github.com/users/ktbyers/orgs","repos_url":"https://api.github.com/users/ktbyers/repos","events_url":"https://api.github.com/users/ktbyers/events{/privacy}","received_events_url":"https://api.github.com/users/ktbyers/received_events","type":"User","site_admin":false},"repo":{"id":27283062,"name":"netmiko","full_name":"ktbyers/netmiko","owner":{"login":"ktbyers","id":899716,"avatar_url":"https://avatars.githubusercontent.com/u/899716?v=3","gravatar_id":"","url":"https://api.github.com/users/ktbyers","html_url":"https://github.com/ktbyers","followers_url":"https://api.github.com/users/ktbyers/followers","following_url":"https://api.github.com/users/ktbyers/following{/other_user}","gists_url":"https://api.github.com/users/ktbyers/gists{/gist_id}","starred_url":"https://api.github.com/users/ktbyers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktbyers/subscriptions","organizations_url":"https://api.github.com/users/ktbyers/orgs","repos_url":"https://api.github.com/users/ktbyers/repos","events_url":"https://api.github.com/users/ktbyers/events{/privacy}","received_events_url":"https://api.github.com/users/ktbyers/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ktbyers/netmiko","description":"Multi-vendor library to simplify Paramiko SSH connections to network devices","fork":false,"url":"https://api.github.com/repos/ktbyers/netmiko","forks_url":"https://api.github.com/repos/ktbyers/netmiko/forks","keys_url":"https://api.github.com/repos/ktbyers/netmiko/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ktbyers/netmiko/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ktbyers/netmiko/teams","hooks_url":"https://api.github.com/repos/ktbyers/netmiko/hooks","issue_events_url":"https://api.github.com/repos/ktbyers/netmiko/issues/events{/number}","events_url":"https://api.github.com/repos/ktbyers/netmiko/events","assignees_url":"https://api.github.com/repos/ktbyers/netmiko/assignees{/user}","branches_url":"https://api.github.com/repos/ktbyers/netmiko/branches{/branch}","tags_url":"https://api.github.com/repos/ktbyers/netmiko/tags","blobs_url":"https://api.github.com/repos/ktbyers/netmiko/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ktbyers/netmiko/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ktbyers/netmiko/git/refs{/sha}","trees_url":"https://api.github.com/repos/ktbyers/netmiko/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ktbyers/netmiko/statuses/{sha}","languages_url":"https://api.github.com/repos/ktbyers/netmiko/languages","stargazers_url":"https://api.github.com/repos/ktbyers/netmiko/stargazers","contributors_url":"https://api.github.com/repos/ktbyers/netmiko/contributors","subscribers_url":"https://api.github.com/repos/ktbyers/netmiko/subscribers","subscription_url":"https://api.github.com/repos/ktbyers/netmiko/subscription","commits_url":"https://api.github.com/repos/ktbyers/netmiko/commits{/sha}","git_commits_url":"https://api.github.com/repos/ktbyers/netmiko/git/commits{/sha}","comments_url":"https://api.github.com/repos/ktbyers/netmiko/comments{/number}","issue_comment_url":"https://api.github.com/repos/ktbyers/netmiko/issues/comments{/number}","contents_url":"https://api.github.com/repos/ktbyers/netmiko/contents/{+path}","compare_url":"https://api.github.com/repos/ktbyers/netmiko/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ktbyers/netmiko/merges","archive_url":"https://api.github.com/repos/ktbyers/netmiko/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ktbyers/netmiko/downloads","issues_url":"https://api.github.com/repos/ktbyers/netmiko/issues{/number}","pulls_url":"https://api.github.com/repos/ktbyers/netmiko/pulls{/number}","milestones_url":"https://api.github.com/repos/ktbyers/netmiko/milestones{/number}","notifications_url":"https://api.github.com/repos/ktbyers/netmiko/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ktbyers/netmiko/labels{/name}","releases_url":"https://api.github.com/repos/ktbyers/netmiko/releases{/id}","created_at":"2014-11-28T21:42:52Z","updated_at":"2015-12-02T22:52:15Z","pushed_at":"2015-12-04T23:03:31Z","git_url":"git://github.com/ktbyers/netmiko.git","ssh_url":"git@github.com:ktbyers/netmiko.git","clone_url":"https://github.com/ktbyers/netmiko.git","svn_url":"https://github.com/ktbyers/netmiko","homepage":null,"size":474,"stargazers_count":136,"watchers_count":136,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":66,"mirror_url":null,"open_issues_count":26,"forks":66,"open_issues":26,"watchers":136,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ktbyers/netmiko/pulls/133"},"html":{"href":"https://github.com/ktbyers/netmiko/pull/133"},"issue":{"href":"https://api.github.com/repos/ktbyers/netmiko/issues/133"},"comments":{"href":"https://api.github.com/repos/ktbyers/netmiko/issues/133/comments"},"review_comments":{"href":"https://api.github.com/repos/ktbyers/netmiko/pulls/133/comments"},"review_comment":{"href":"https://api.github.com/repos/ktbyers/netmiko/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ktbyers/netmiko/pulls/133/commits"},"statuses":{"href":"https://api.github.com/repos/ktbyers/netmiko/statuses/99ccad7d242b39c03cd57c7182a57d8f1fcfadb0"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"ktbyers","id":899716,"avatar_url":"https://avatars.githubusercontent.com/u/899716?v=3","gravatar_id":"","url":"https://api.github.com/users/ktbyers","html_url":"https://github.com/ktbyers","followers_url":"https://api.github.com/users/ktbyers/followers","following_url":"https://api.github.com/users/ktbyers/following{/other_user}","gists_url":"https://api.github.com/users/ktbyers/gists{/gist_id}","starred_url":"https://api.github.com/users/ktbyers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktbyers/subscriptions","organizations_url":"https://api.github.com/users/ktbyers/orgs","repos_url":"https://api.github.com/users/ktbyers/repos","events_url":"https://api.github.com/users/ktbyers/events{/privacy}","received_events_url":"https://api.github.com/users/ktbyers/received_events","type":"User","site_admin":false},"comments":9,"review_comments":0,"commits":3,"additions":69,"deletions":6,"changed_files":2}}