in reply to openssh start another ssh session on machine b

is easy, you run a program on machine b, which opens a connection to machine c
  • Comment on Re: openssh start another ssh session on machine b

Replies are listed 'Best First'.
Re^2: openssh start another ssh session on machine b
by jhuijsing (Acolyte) on Mar 27, 2014 at 06:51 UTC
    not very helpful

    but is probably my own fault. Brains not firing on all cylinders.

    Yes I could do openssh->system call. But I need to pass a user name and password (cannot not use keys) and some other options.

    I just don't know enough about how use the pty. so that i can start another ssh session and pass the options I need

      ... cannot not use keys ... I just don't know enough about how use the pty. so that i can start another ssh session and pass the options I need

      Did you try something? What happened?

      I would do  system qw[  thenewprogram.pl usrname password whateverelseiyouneed  ]; ...

      or Proc::Background if needed

      And inside thenewprogram.pl just do regular old   Net::OpenSSH->new('username:password@hostname.example'); ... error checking ...

      and ...