- ~/.ssh/config
Host target
Hostname xxx.xxx.xxx.xxx
Port 22
User root
ProxyCommand ssh -W %h:%p basion
Host basion
Hostname xxx.xxx.xxx.xxx
Port 22
User foo
IdentityFile /home/foo/.ssh/basion.pem
- command
$ bundle exec knife zero chef_client 'name:target' --ssh-user root --attribute machinename