Giter Site home page Giter Site logo

AWS Multi Pem Cluster about i2cssh HOT 4 CLOSED

MuratKaragozgil avatar MuratKaragozgil commented on August 16, 2024
AWS Multi Pem Cluster

from i2cssh.

Comments (4)

wouterdebie avatar wouterdebie commented on August 16, 2024

Even though there's an extra option in i2cssh you can use to set the priv key (-Xi=x.pem or -Xi=y.pem, etc), this doesn't apply to hosts, but only to global options or per cluster. In your case I'd use your ssh config file (~/.ssh/config) and add different IdentityFiles for each host (or subnet). In your case you'd have something like:

Host 35.180.999.99
  User ubuntu
  IdentityFile /Users/murat/Downloads/x.pem

Host 13.39.999.99
  User ubuntu 
  IdentityFile /Users/murat/Downloads/y.pem

And if your identity files map to different subnets, you can even fo something like

Host 13.39.*
  User ubuntu
  IdentityFile /Users/murat/Downloads/y.pem

For the i2ssh config you would just do:

version: 2
clusters:
  mycluster:
    hosts:
      - 35.180.999.99
      - 13.39.999.99
      - 52.47.999.99
      - ...

from i2cssh.

wouterdebie avatar wouterdebie commented on August 16, 2024

Also, thank you for the question, because I found a bug with parsing the extra from the config file :)

from i2cssh.

MuratKaragozgil avatar MuratKaragozgil commented on August 16, 2024

Thank you very much 🚀

from i2cssh.

wouterdebie avatar wouterdebie commented on August 16, 2024

My pleasure!

from i2cssh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.