Re: Programmatically adding port forwardings -- how?

From: Darren Tucker (dtucker_at_gate.dodgy.net.au)
Date: 03/16/05


Date: 16 Mar 2005 12:49:53 GMT

On 2005-03-16, Ingolf Steinbach <ingolf.steinbach@jena-optronik.de> wrote:
> is there a way for a program to add port forwardings to an
> existing ssh connection when that ssh process gets its stdin
> via a pipe from this program?

There's an enhancement request with patch to do it over the control
socket:
http://bugzilla.mindrot.org/show_bug.cgi?id=993

> How can I feed the "-L x:y:z" command line to ssh from my
> program (e.g. convince ssh to read from stdin rather than
> /dev/tty)?

I think you'd have to modify ssh.

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.


Relevant Pages

  • Re: [opensuse] BASH - Need help with ssh remote directory test?
    ... $DESTHOST as a part of the environment. ... If D.C.R. had quoted the command correctly himself, ... The real reason why only the first host is tested is, that ssh "sucks" ... away all stdin so that the read in the while-loop sees only the first ...
    (SuSE)
  • Re: Redirecting stdin to a file requiring parameters
    ... sends it to the remote command's stdin, ... ssh oabbott@stagesserver \ ... tcgetattr: Invalid argument ... ls: bar: No such file or directory ...
    (comp.unix.shell)
  • Re: Pseudo-terminal and OpenSSH
    ... > supplier requires me to create an ssh connection to their firewall before ... > child process closes the "master" file descriptor and rebinds stdin, ... > the rebind of stdin i would guess too), and then it continues the program ... You don't use public key authentication? ...
    (comp.unix.programmer)
  • Re: using net::ssh shell to sudo to another user and execute commands
    ... use a local ssh command. ... it is read from stdin ... I think I also so a man page on sudo that said -S causes it to read ... do some other kind of input from the terminal, raw input or something ...
    (comp.lang.ruby)
  • Re: double sshing, using ProxyCommand
    ... >Maybe this is a FAQ. ... In fact I found through google several people ... >Then I try to start ssh to M2: ... >Pseudo-terminal will not be allocated because stdin is not a terminal. ...
    (comp.security.ssh)

Loading