SSH - mlafeldt/chef-runner GitHub Wiki

chef-runner can provision remote hosts like EC2 instances, or basically any system reachable over SSH.

Use the -H option (or --host) to specify the name of a host that was configured for direct SSH access. The argument passed to -H has the format [user@]hostname[:port], allowing you to optionally change SSH user and port. If you need to change other SSH settings, either use --ssh or add a host-specific configuration section to your ~/.ssh/config file.

Examples:

$ chef-runner -H example.local
$ chef-runner -H [email protected]
$ chef-runner -H example.local:1234
$ chef-runner -H example.local --ssh LogLevel=debug --ssh "ProxyCommand ..."