Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Net::OpenSSH -T option

by salva (Abbot)
on Aug 10, 2013 at 06:58 UTC ( #1048882=note: print w/ replies, xml ) Need Help??


in reply to Net::OpenSSH -T option

Adding -T to the ssh command line used to start the master connection is useless.

Once you a have Net::OpenSSH object connected to the remote host, you can run remote commands without a tty using the tty flag:

$ssh->system({tty => 0}, 'ls -l');


Comment on Re: Net::OpenSSH -T option
Select or Download Code
Replies are listed 'Best First'.
Re^2: Net::OpenSSH -T option
by kwolfte (Initiate) on Aug 12, 2013 at 22:02 UTC

    Thanks. It seems that RequestTty=no is only available for more recent versions of openssh, unfortunately. I could use the -T option but that's ok now, the tty flag will do

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1048882]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (18)
As of 2015-07-30 13:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls