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.
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?
take a look on 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.
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.
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
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.
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
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.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.