Skip to content

Instantly share code, notes, and snippets.

@ashrithr
Last active August 29, 2015 14:00
Show Gist options
  • Save ashrithr/11153926 to your computer and use it in GitHub Desktop.
Save ashrithr/11153926 to your computer and use it in GitHub Desktop.
i2cssh

Config file:

cat > ~/.i2csshrc <<EOF
---
version: 2
clusters:
  kafka_cluster:
    login: ec2-user
    hosts:
     - ec2-54-219-114-64.us-west-1.compute.amazonaws.com 
     - ec2-204-236-188-149.us-west-1.compute.amazonaws.com 
     - ec2-54-193-135-104.us-west-1.compute.amazonaws.com
  spark_cluster:
    login: ec2-user
    hosts:
      - ec2-54-219-87-178.us-west-1.compute.amazonaws.com 
      - ec2-204-236-137-42.us-west-1.compute.amazonaws.com 
      - ec2-54-219-117-253.us-west-1.compute.amazonaws.com
  cass_cluster:
    login: ec2-user
    hosts:
      - ec2-50-18-10-150.us-west-1.compute.amazonaws.com 
      - ec2-54-219-230-45.us-west-1.compute.amazonaws.com 
      - ec2-50-18-12-57.us-west-1.compute.amazonaws.com
EOF

Start cluster ssh session:

i2cssh -c kafka_cluster -Xi=~/.ssh/private_key -s 1 -p SolarizedDark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment