Re: double sshing, using ProxyCommand

thomasse_at_pelops.inria.fr
Date: 04/07/04


Date: Wed, 7 Apr 2004 15:58:57 +0000 (UTC)

In article <c5173i$1nd$1@news-rocq.inria.fr>,
 thomasse@pelops.inria.fr () writes:
>Hi,
>Maybe this is a FAQ. In fact I found through google several people
>with a similar problem, but I have never read the true solution.
>
>I want to ssh to machine M1, and from there to machine M2.
>So I type (I have previously started an ssh-agent):
>My_Machine$ ssh -X -A -t M1 ssh -X M2
>M2$ ...I'm on M2, I'm happy...
>
>Now I want ssh to automatically discover that I need this sequence
>when I want to go to machine M2. The manual tells me that I should
>write something in my .ssh/config. Here it is:
>My_Machine$ cat .ssh/config
>Host M2
>ProxyCommand ssh -t -X -A M1 ssh -X %h
>
>Then I try to start ssh to M2:
>My_Machine$ ssh -t M2
>Pseudo-terminal will not be allocated because stdin is not a terminal.
>Pseudo-terminal will not be allocated because stdin is not a terminal.
>...and it gets stuck.
>
>I have checked with -v that I do use the ProxyCommand as mention in my
>config file. I have tried a number of options that I have seen
>suggested by various contributors, all in vain...
>Of course it makes no difference when I put explicitly M2 in place of
>"%h" in my config.
>Does anyone have a clue?
>Many thanks in advance for any help!
>--
>Francois . Thomasset @ inria . fr (please remove spaces to answer me)

I should have mentionned that My_Machine is under linux 2.4 (redhat 8)
like M2 (redhat 9), and M1 is an alpha under OSF1. We use protocol 2.
FT



Relevant Pages

  • 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: Upgraded SSH Public Key Authorization on FC4 Not Working
    ... RY> It appeared that the default ssh that wsa installed by the FC4 ... I very much doubt the FC4 included OpenSSH ... Perhaps you're referring to protocol version 1. ... RY> Since the FAQ pretty much dissed anything below version 2.20, ...
    (comp.security.ssh)
  • Re: using net::ssh shell to sudo to another user and execute commands
    ... use a local ssh command. ... try to do ssh inside of a ruby process it won't work. ... it is read from stdin ... That is not how streams work from my understanding. ...
    (comp.lang.ruby)