Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

knife solo with ssh-gateway where usernames differ fails in rsync #484

Open
ghost opened this issue Apr 5, 2016 · 2 comments
Open

knife solo with ssh-gateway where usernames differ fails in rsync #484

ghost opened this issue Apr 5, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 5, 2016

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:

knife solo cook user@target --ssh-gateway other-user@bastion-host

where target and bastion-host are the two hosts.

@florian-asche
Copy link

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.

@matschaffer
Copy link
Owner

👍 for ssh ProxyCommand settings. I use it all the time and it greatly simplifies the use of any number of bastion hosts.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants