{"action":"closed","issue":{"url":"https://api.github.com/repos/robotframework/robotframework/issues/2186","labels_url":"https://api.github.com/repos/robotframework/robotframework/issues/2186/labels{/name}","comments_url":"https://api.github.com/repos/robotframework/robotframework/issues/2186/comments","events_url":"https://api.github.com/repos/robotframework/robotframework/issues/2186/events","html_url":"https://github.com/robotframework/robotframework/issues/2186","id":114127068,"number":2186,"title":"SSH connection via SSH proxy command defined in ~/.ssh/config","user":{"login":"jb185t","id":15385220,"avatar_url":"https://avatars.githubusercontent.com/u/15385220?v=3","gravatar_id":"","url":"https://api.github.com/users/jb185t","html_url":"https://github.com/jb185t","followers_url":"https://api.github.com/users/jb185t/followers","following_url":"https://api.github.com/users/jb185t/following{/other_user}","gists_url":"https://api.github.com/users/jb185t/gists{/gist_id}","starred_url":"https://api.github.com/users/jb185t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jb185t/subscriptions","organizations_url":"https://api.github.com/users/jb185t/orgs","repos_url":"https://api.github.com/users/jb185t/repos","events_url":"https://api.github.com/users/jb185t/events{/privacy}","received_events_url":"https://api.github.com/users/jb185t/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-29T19:22:11Z","updated_at":"2015-10-29T19:35:12Z","closed_at":"2015-10-29T19:35:11Z","body":"Hi, there;\r\n\r\nWhat I'm trying to do with RF is to remotely ssh to a server via a ssh proxy server using public/private key. \r\n\r\nmachine-c  ------------> machine-p  ------------> machine-t\r\n(ssh client)                   (ssh proxy)                  (target server)\r\n\r\nFrom a ssh client machine-c, a ssh connection is first made to a ssh proxy machine-p then additional ssh connection to a target server machine-t. The ssh proxy is defined in ~/.ssh/config as below in client machine-c;\r\n\r\nHost machine-p\r\n  Hostname 10.10.10.10\r\n\r\nHost machine-t.example.com\r\n  ProxyCommand ssh machine-p nc  machine-t.example.com\r\n\r\nOn Linux CLI, giving  \"ssh machine-t.example.com\" takes me into machine-t successfully without asking password. And the log message in /var/log/secure at machine-t.example.com shows that a ssh connection came from ssh proxy machine-p.\r\n\r\nHowever, if I do the same ssh connection request using Robotframework ssh library, it looks like it is not reading ~/.ssh/config and establishes connection directly to target machine-t. The log in /var/log/secure at machine-t.example.com tells me that it is from machine-c not from machine-p. Is this expected RF behavior or am I missing something?\r\n \r\nI'm using Python 2.6, paramiko-1.9.0 and Robotframework 2.9.1 with SSH library 2.1.1. \r\n\r\nWould appreciate your response on this.\r\n\r\nJoon.\r\n"}}