Comments (4)
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 IdentityFile
s 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.
Also, thank you for the question, because I found a bug with parsing the extra
from the config file :)
from i2cssh.
Thank you very much 🚀
from i2cssh.
My pleasure!
from i2cssh.
Related Issues (20)
- Allow use of zsh for spawning the ssh sessions instead of bash HOT 1
- gem outdated HOT 2
- Exception HOT 2
- Installation fails HOT 1
- Error when running i2cssh with only a cluster name as an option on CLI HOT 2
- Allow clusters to include other clusters and not just hosts HOT 5
- Login string with username@host@gateway HOT 6
- How to type commands specific to 1 ip during broadcast HOT 1
- Profile selection doesn't work HOT 7
- FEATURE REQUEST: Allow custom commands HOT 2
- general question | can we specify the port with {port} when using -x HOT 3
- Passing an 'extra' key/value parameter whose value contains '=' fails HOT 1
- Installation issues
- Use exec to save dropping back into local bash shell. HOT 7
- ModuleNotFoundError HOT 9
- UnboundLocalError: cannot access local variable 'global_opts' where it is not associated with a value HOT 1
- Question: How to break out of broadcast to focus keyboard on one host HOT 2
- Error while installing i2cssh HOT 1
- Question: can new windows inherit env vars of source window?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i2cssh.