Bug 2736 - Question-"PermitTTY no" is not working as expected
Summary: Question-"PermitTTY no" is not working as expected
Status: CLOSED INVALID
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 7.5p1
Hardware: Other Other
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-04 06:18 AEST by balu
Modified: 2021-04-23 14:55 AEST (History)
1 user (show)

See Also:


Attachments
permittty (138.41 KB, image/png)
2017-07-04 09:54 AEST, balu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description balu 2017-07-04 06:18:14 AEST
I have "PermiTTY no" in my sshd_config. When I did ssh with pty (ssh user@ip) it falls back to "pseudo terminal". As per sshd_config man page, it is unclear whether this behavior is correct or not. Could you please clarify this so that we can implement the same on windows.

Thanks.
Comment 1 Darren Tucker 2017-07-04 09:39:32 AEST
What platform are you running on and what does your sshd_config look like (please use "Add an attachment" to attach the config to this bug.

What do you mean by "falls back to pseudo terminal"?  Could you please attach the debug output from the client (ssh -vvv, again please use "Add an attachment" to attach it).
Comment 2 balu 2017-07-04 09:54:39 AEST
Created attachment 3007 [details]
permittty
Comment 3 balu 2017-07-04 09:56:04 AEST
please see the attached pic..
Comment 4 balu 2017-07-04 09:57:58 AEST
Looks like attachment is not working, here is the link

https://user-images.githubusercontent.com/23668037/27810552-a62e737c-6010-11e7-9f64-d390979cae1b.png
Comment 5 Darren Tucker 2017-07-04 10:09:40 AEST
a png?  you seriously couldn't copy all of the text rather than posting a png screenshot of a small fragment of it?  Besides that you didn't answer any of the other questions.

Manually transcribing one of the lines you couldn't copy yourself:

> PTY allocation request failed on channel 0

your request for a pty was denied.

it looks like you have a shell reading and writing to stdin/stdout without a pty.  Try running "tty".

This seems to be working as expected.  You probably won't be able to do anything that needs a pty (eg a screen based editor).
Comment 6 Damien Miller 2021-04-23 14:55:00 AEST
closing resolved bugs as of 8.6p1 release