OpenSSH
[Top] [All Lists]

Re: tunneling through stdin/stdout, source routing

To: openssh-unix-dev@mindrot.org
Subject: Re: tunneling through stdin/stdout, source routing
From: bob@proulx.com (Bob Proulx)
Date: Tue, 14 Nov 2006 00:19:59 -0700
Cc: Simon Richter <Simon.Richter@hogyros.de>
Delivered-to: sp-com-lists@consult.net
Delivered-to: openssh-unix-dev-list1@securepoint.com
Delivered-to: openssh-unix-dev-tmda@mindrot.org
Delivered-to: openssh-unix-dev@mindrot.org
In-reply-to: <65838274-0AFC-41A4-A96D-C94C218228CA@gmail.com>
List-archive: <http://lists.mindrot.org/pipermail/openssh-unix-dev>
List-help: <mailto:openssh-unix-dev-request@mindrot.org?subject=help>
List-id: Development of portable OpenSSH <openssh-unix-dev.mindrot.org>
List-post: <mailto:openssh-unix-dev@mindrot.org>
List-subscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=subscribe>
List-unsubscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=unsubscribe>
Mail-followup-to: openssh-unix-dev@mindrot.org, Simon Richter <Simon.Richter@hogyros.de>
References: <4555C24C.7000007@hogyros.de> <65838274-0AFC-41A4-A96D-C94C218228CA@gmail.com>
Sender: openssh-unix-dev-bounces+openssh-unix-dev-list1=securepoint.com@mindrot.org
User-agent: Mutt/1.5.9i
John Davidorff Pell wrote:
> couldn't some carefully constructed host directives in the config  
> file do this?
> 
> e.g.:
> host cookie
>       hostname monster
>       ProxyCommand ssh -t -l ralph monster ssh -t -l root cookie

That does not work because ssh expects the ProxyCommand to connect it
to another sshd port 22.  The above does not do that but instead tries
to start an interactive shell.

Also beware of using -t to force ttys.  That won't be 8bit clean.  In
particular you probably don't want that in your config.

You probably do want -qq in the option list though.

  Host proxy.example.com
    ProxyCommand none

  Host *.example.com
    ProxyCommand ssh -qq proxy.example.com connect %h %p

Note that the ordering is important.

Bob
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

<Prev in Thread] Current Thread [Next in Thread>