PTY allocation?

Scott Neugroschl scott_n at
Wed Jun 5 06:23:00 EST 2013

It wound up being a brain-dead client that was asking for a terminal on
an SFTP session.
I'm still thinking about looking at the subsystem, and skipping the
terminal allocation for SFTP.

> -----Original Message-----
> From: dtucker at [mailto:dtucker at] On Behalf Of
> Darren Tucker
> Sent: Tuesday, June 04, 2013 11:14 AM
> To: Scott Neugroschl
> Cc: openssh-unix-dev at
> Subject: Re: PTY allocation?
> On Tue, Jun 4, 2013 at 1:08 PM, Scott Neugroschl <scott_n at>
> wrote:
> > Attempts to connect to that sshd via sftp are failing due to an
> > inability to allocate a pty.   I can't really see a reason that an
> sftp
> > session requires a pty.
> me either.
> > Is this addressed in later versions?
> Requesting a tty is a function of the client, not the server.
> > Should I patch my system to avoid even trying to allocate a pty for
> an sftp session?
> maybe.  which client software are you using?  OpenSSH has the
> RequestTTY option, but it looks like the default of "auto" doesn't
> request one with sftp sessions.
> --
> Darren Tucker (dtucker at
> GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
>     Good judgement comes with experience. Unfortunately, the
> usually comes from bad judgement.

More information about the openssh-unix-dev mailing list