Proposed enhancement: forward controlling terminal

Matt McCutchen hashproduct at gmail.com
Mon Sep 18 10:12:19 EST 2006


On 9/17/06, Darren Tucker <dtucker at zip.com.au> wrote:
> How would that be different from "ssh -t server" and "ssh -tt server"
> that have been in ssh(1) for a quite some time?

I should see "foo" on my terminal when I run the following:
    ssh (options) localhost 'echo foo >/dev/tty' </dev/null >/dev/null

But I get:
    $ ssh localhost 'echo foo >/dev/tty' </dev/null >/dev/null
    bash: /dev/tty: No such device or address
    $ ssh -t localhost 'echo foo >/dev/tty' </dev/null >/dev/null
    Pseudo-terminal will not be allocated because stdin is not a terminal.
    bash: /dev/tty: No such device or address
    $ ssh -tt localhost 'echo foo >/dev/tty' </dev/null >/dev/null
    tcgetattr: Inappropriate ioctl for device
    Connection to localhost closed.

I'm using Fedora Core 5's openssh-4.3p2-4 .

Matt



More information about the openssh-unix-dev mailing list