0
Under review

"Failed to require the PTY package" while connecting to SFTP

Francesco 4 years ago in iPad updated by Alexander Blach (Developer) 4 years ago 1

I'm trying to connect to an SFTP server with my public key set-up, but it's not working. I keep getting:

ERROR: Failure while requesting PTY: Failed to require the PTY package

Does anyone know what PTY is? I've been looking everywhere and I don't understand this. It happens only on Textastic, not on my Ubuntu terminal (with the same exact settings).

Under review

PTY stands for pseudoterminal, see https://en.wikipedia.org/wiki/Pseudoterminal

I haven't seen this error before, but it is generated by this line of code in libssh2: https://github.com/libssh2/libssh2/blob/master/src/channel.c#L1008

It looks like requesting a new pseudo terminal fails for some reason.


Just a guess: is the system you are connecting to serving a lot of clients? Maybe there are no pseudo terminals left?

Can you have a look at the server logs? Maybe you can find an error message logged by the SSH server.