1. knife-ssh(1)
  2. Chef Manual
  3. knife-ssh(1)

NAME

knife-ssh - Run a command or interactive session on multiple remote hosts

SYNOPSIS

knife ssh QUERY COMMAND (options)

-a, --attribute ATTR
The attribute to use for opening the connection - default is fqdn
-C, --concurrency NUM
The number of concurrent connections
-m, --manual-list
QUERY is a space separated list of servers
-P, --ssh-password PASSWORD
The ssh password
-x, --ssh-user USERNAME
The ssh username

The ssh sub-command opens an ssh session to each of the nodes in the search results of the QUERY. This sub-command requires that the net-ssh-multi and highline Ruby libraries are installed. On Debian systems, these are the libnet-ssh-multi-ruby and libhighline-ruby packages. They can also be installed as RubyGems (net-ssh-multi and highline, respectively).

  1. Chef 0.10.0.beta.8
  2. April 2011
  3. knife-ssh(1)