>The error is coming from ssh2.c where it tries to open /dev/tty and fails.
>Looking at the ssh man pages I thought adding a "-t" would allocate a tty.
>But no luck there.  Apart from hacking the source code to comment out that test 
>does anyone have any suggestions?

There is an example in pty.c.  I put the following in ttymodes.c about line 284:

if (tcgetattr(fd, &tio) < 0)
    {
        char *c = ttyname(fd);

+        ioctl(fd, I_PUSH, "ptem");   /* push ptem */
+        ioctl(fd, I_PUSH, "ldterm"); /* push ldterm */

        if (tcgetattr(fd, &tio) < 0) {
                packet_put_char(TTY_OP_END);
                log_msg("tcgetattr: %.100s", strerror(errno));
                log_msg("%s:%d tcgetattr 1 -failed  %d %s (%s)\n",
                        __FILE__, __LINE__, fd, strerror(errno), c == NULL ? "<null>" 
: c);
                return;
        }
    }

Good luck,
Paul

Reply via email to