in reply to Connect remote shell to local machine STDIN
For instance, running the shell attached to the local stdio:
$ssh->system;
Attaching it to a socket:
my $socket = $ssh->open2socket
Or to a pseudo tty:
my $pty = $ssh->open2pty
Another way to do it is to explicitly specify the shell command you want to run:
my $socket = $ssh->open2socket('/usr/sh', '-i');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Connect remote shell to local machine STDIN
by shivangi (Initiate) on Nov 29, 2013 at 09:00 UTC |