I´d like to use cssh trough a ssh-gateway. To do this, i have to call one gateway-session for every server i´d like to use and give this session the command to open the server session.
take a look on chainssh https://sourceforge.net/projects/chainssh
chainssh is a shell script to smplify the ssh login via multiple sshgateways/firewallgateaways. e.g. connect from homehost via sshgateway to a clusternode with one command.
best bobsf
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
shur it shut work, cssh with cainssh! (i use it my self)
config chainssh to work with the diferent hosts (via the ssh-gateway)
and then replace in the .csshrc
the
ssh=/usr/bin/ssh
with
ssh=chainssh.sh
so youre use cssh for the conect to "many servers"
and let handel cainssh the connetct form you host via the ssh-gateway (or many ssh-gateways) to the taget server.
best
bobsf
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
sorry, but I can´t figure out the configuration of chainssh. I tryed some different configs, but it doesn´t worked for. After all, chainssh showed me the way to do what I want to do. I just changed in .csshrc
I´d like to use cssh trough a ssh-gateway. To do this, i have to call one gateway-session for every server i´d like to use and give this session the command to open the server session.
For example:
cssh user@sshgw:"ssh user@server1" user@sshgw:"ssh user@server2" ....
I know it doesn´t work by now this way. But is there any way to do it? Or is it possible to add this feature in one of the next releases?
opsoli
Hi,
take a look on chainssh
https://sourceforge.net/projects/chainssh
chainssh is a shell script to smplify the ssh login via multiple sshgateways/firewallgateaways. e.g. connect from homehost via sshgateway to a clusternode with one command.
best bobsf
Hi bobsf,
thanks for your reply, but I need a tool for an interactive shell on many servers over ssh-Gateway. With cainssh I can´t do this.
Thanks
opsoli
Hi opsoli,
shur it shut work, cssh with cainssh! (i use it my self)
config chainssh to work with the diferent hosts (via the ssh-gateway)
and then replace in the .csshrc
the
ssh=/usr/bin/ssh
with
ssh=chainssh.sh
so youre use cssh for the conect to "many servers"
and let handel cainssh the connetct form you host via the ssh-gateway (or many ssh-gateways) to the taget server.
best
bobsf
Hi bobsf,
sorry, but I can´t figure out the configuration of chainssh. I tryed some different configs, but it doesn´t worked for. After all, chainssh showed me the way to do what I want to do. I just changed in .csshrc
ssh=/usr/bin/ssh
to
ssh=/home/me/sshgw
and made a little script called "sshgw":
ssh -x -o ConnectTimeout=10 -C me@sshgateway -t ssh -Cx $2@$3
and it works fine for me.
Greets
opsoli