Re: SSH Multiplexing w/ no controlling TTY

From: Grand Poohbah (freebsd_at_theharem.net)
Date: 06/01/05

  • Next message: Grand Poohbah: "Re: SSH Multiplexing w/ no controlling TTY"
    Date: Wed, 1 Jun 2005 16:00:52 -0500
    
    

    just to make sure i am being somewhat coherant.

    I have a C program that forks and calls the ssh. In the event the ssh
    connection goes down it loops and starts again (very basic script). Normaly
    STDIN & STDOUT of the fork process is piped away, but when i remove this and
    let the info go to STDIN i see the following.

    /usr/bin/ssh -M -S
    /tmp/vpn-user.remote-mux -a -P -2 -lvpn-user -p22 -cblowfish -L3306:127.0.0.1:3306
     -R1236:127.0.0.1:22 -R11236:127.0.0.1:1030 vpn1.domain.com
    ssh_control_listener bind(): No such file or directory

    If i run the same command from the foreground it works just fine. Forking
    allows me to simulate what happens when i run this from a start up script.


  • Next message: Grand Poohbah: "Re: SSH Multiplexing w/ no controlling TTY"

    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)

  • Quantcast