Menu

cssh trough ssh-gateway

Help
opsoli
2007-09-05
2013-06-03
  • opsoli

    opsoli - 2007-09-05

    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

     
    • bobsf

      bobsf - 2007-09-06

      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

       
    • opsoli

      opsoli - 2007-09-07

      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

       
      • bobsf

        bobsf - 2007-09-07

        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

         
    • opsoli

      opsoli - 2007-09-10

      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

       

Log in to post a comment.