{"action":"created","issue":{"url":"https://api.github.com/repos/matschaffer/knife-solo/issues/484","repository_url":"https://api.github.com/repos/matschaffer/knife-solo","labels_url":"https://api.github.com/repos/matschaffer/knife-solo/issues/484/labels{/name}","comments_url":"https://api.github.com/repos/matschaffer/knife-solo/issues/484/comments","events_url":"https://api.github.com/repos/matschaffer/knife-solo/issues/484/events","html_url":"https://github.com/matschaffer/knife-solo/issues/484","id":146064367,"number":484,"title":"knife solo with ssh-gateway where usernames differ fails in rsync","user":{"login":"kim-toms","id":21068,"avatar_url":"https://avatars.githubusercontent.com/u/21068?v=3","gravatar_id":"","url":"https://api.github.com/users/kim-toms","html_url":"https://github.com/kim-toms","followers_url":"https://api.github.com/users/kim-toms/followers","following_url":"https://api.github.com/users/kim-toms/following{/other_user}","gists_url":"https://api.github.com/users/kim-toms/gists{/gist_id}","starred_url":"https://api.github.com/users/kim-toms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kim-toms/subscriptions","organizations_url":"https://api.github.com/users/kim-toms/orgs","repos_url":"https://api.github.com/users/kim-toms/repos","events_url":"https://api.github.com/users/kim-toms/events{/privacy}","received_events_url":"https://api.github.com/users/kim-toms/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-05T18:04:21Z","updated_at":"2016-04-06T20:51:20Z","closed_at":null,"body":"We use a bastion host, and the knife solo command, when given with different usernames for the target host (where chef should run), and the bastion host (which we're just passing through), seems to fail in the rsync due to not being able to create the cookbooks-1 directory.  Typical command is something like:\r\n\r\nknife solo cook user@target --ssh-gateway other-user@bastion-host\r\n\r\nwhere target and bastion-host are the two hosts."},"comment":{"url":"https://api.github.com/repos/matschaffer/knife-solo/issues/comments/206561690","html_url":"https://github.com/matschaffer/knife-solo/issues/484#issuecomment-206561690","issue_url":"https://api.github.com/repos/matschaffer/knife-solo/issues/484","id":206561690,"user":{"login":"florian-asche","id":2785700,"avatar_url":"https://avatars.githubusercontent.com/u/2785700?v=3","gravatar_id":"","url":"https://api.github.com/users/florian-asche","html_url":"https://github.com/florian-asche","followers_url":"https://api.github.com/users/florian-asche/followers","following_url":"https://api.github.com/users/florian-asche/following{/other_user}","gists_url":"https://api.github.com/users/florian-asche/gists{/gist_id}","starred_url":"https://api.github.com/users/florian-asche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florian-asche/subscriptions","organizations_url":"https://api.github.com/users/florian-asche/orgs","repos_url":"https://api.github.com/users/florian-asche/repos","events_url":"https://api.github.com/users/florian-asche/events{/privacy}","received_events_url":"https://api.github.com/users/florian-asche/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T20:51:20Z","updated_at":"2016-04-06T20:51:20Z","body":"Did you try to use ssh proxy instead? You can configure in .ssh/config. Use it, and it works great. Maybe a solution for you, if bastion host acts like a normal ssh server."}}