in reply to Re: openssh start another ssh session on machine b
in thread openssh start another ssh session on machine b

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

  • Comment on Re^2: openssh start another ssh session on machine b

Replies are listed 'Best First'.
Re^3: openssh start another ssh session on machine b
by Anonymous Monk on Mar 27, 2014 at 07:08 UTC

    ... 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 ...